Am 18.03.2017 um 20:25 schrieb Michael Mrozek shop@dragonbox.de:
Am Sat, 18 Mar 2017 19:49:45 +0200 hat Grazvydas Ignotas notasas@gmail.com geschrieben:
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.
That's perfectly fine with me :)
Yes, that is probably the quickest approach.
Pandora's rootfs is appended to boot.scr, get it with: dd if=boot.scr of=rootfs.gz bs=4k skip=801
Okay, easily possible.
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
Okay, then I'll need some u-boot then which does load uEnv.txt. No idea what the status is, we have various testing U-Boots around, but Matthijs might be able to help me here.
Just use our u-boot 2016.11.
It is already uEnv.txt based:
http://git.goldelico.com/?p=gta04-uboot.git;a=blob;f=Letux/boot-scr/uEnv-let...
But you need to adapt to use an init ram disk.
BTW: this is something we should do anyways for the PyraOS since then we can get the display running very early and use Linux for a boot menu.
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.
Well, we can reuse some parts (parts of the Wifi-Test, USB- / SD-Card tests, etc.), but that should be something I can mostly do myself.
Having the scripts directly on the SD Card is easiest, as it makes adjusting the scripts a lot more convenient.
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.
I'll try to assemble another unit for you this week (hopefully one without any errors, as I cannot fully test them without the tester card ;))
Just send me your new address :)
Gražvydas _______________________________________________ Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
-- Mit freundlichen Grüßen,
Michael Mrozek
DragonBox Shop OpenPandora GmbH Geschäftsführer: Michael Mrozek
Schäffbräustr. 11 85049 Ingolstadt Deutschland Tel.: 0841 / 990 5548 http://www.dragonbox.de/ HRB 4879, Amtsgericht Ingolstadt
eMail: info@dragonbox.de
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel