Hi,
On Sat, Mar 18, 2017 at 10:15 AM, Michael Mrozek shop@dragonbox.de wrote:
Hi,
as we need to have an easy and fast way to test the Pyra boards for defects, I'd like to start working on a Test- and OS-Flasher-Card that will also be used by GC to preinstall and test the units on mass production.
Similar to the one on the Pandora: https://cloud.openpandora.org/index.php/s/HiXoyEsaXryhx20
I think we can adapt and reuse the pandora's one, IIRC it doesn't do anything hardware specific before it starts the main script. That is unless somebody has a better idea.
Pandora's rootfs is appended to boot.scr, get it with: dd if=boot.scr of=rootfs.gz bs=4k skip=801
Then on a Pyra, set up u-boot to use that rootfs as a init ram disk. In uEnv.txt: fatload mmc 0 0x81000000 rootfs.gz setenv bootargs console=${console} ramdisk_size=8192 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81000000,8M
With that it should hopefully boot into the ramdisk. You can gunzip rootfs.gz and mount it on a PC to add/edit stuff, but I suggest keeping as much as possible in the scripts directly on the SD card. The scripts themselves of course need to be completely redone.
This is all untested and probably needs adjustments, it's a real chore to work with my current board so I'd like to avoid that.
GraÅžvydas