
Hello List,
i am new here and in embedded development (more a Javascript/Java developer)
currently i have to port android to an raspberry pi cm3 and like to use u-boot.
what works already: * boot into u-boot * boot into android * boot into u-boot into android
so far so good. now i have to store a variable into the environment of u-boot. here i got stuck. any try to write somewhere from u-boot leads in a endless loop of the following message: fsm 1, hsts 00000001
it doesn't matter if i use saveenv, fatwrite or ext4write
some google result on that says the sd-card is bat and should be changed. but on cm3 there is no sd-card. its a flash storage directly on the compute module itself. and i tried more than on module. all with the same result. and i can write in usb-storage mode from any other device and from inside the booted android to this storage. so i think there might be a fundamental problem with writing to the flash from u-boot.
does anybody have some hints/points to look into?
i tried current master (v2018.05) and next branches. same result.
here some serial output:
U-Boot 2018.05-00181-g62d77cea31-dirty (May 14 2018 - 13:41:23 +0200)
DRAM: 944 MiB RPI Compute Module 3 (0xa020a0) MMC: mmc@7e202000: 0, sdhci@7e300000: 1 Loading Environment from FAT... WARNING at drivers/mmc/bcm2835_sdhost.c:435/bcm2835_send_command()! WARNING at drivers/mmc/bcm2835_sdhost.c:435/bcm2835_send_command()! *** Warning - bad CRC, using default environment
Failed (-5) In: serial Out: vidconsole Err: vidconsole Net: No ethernet found. starting USB... USB0: scanning bus 0 for devices... Error: smsc95xx_eth address not set. 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 WARNING at drivers/mmc/bcm2835_sdhost.c:435/bcm2835_send_command()! WARNING at drivers/mmc/bcm2835_sdhost.c:435/bcm2835_send_command()! switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found U-Boot script /boot.scr.uimg 4489 bytes read in 3 ms (1.4 MiB/s) ## Executing script at 02000000 Loading uImage... 6143256 bytes read in 785 ms (7.5 MiB/s) Loading uRamdisk... 1562965 bytes read in 202 ms (7.4 MiB/s)