All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] u-boot on raspberry pi cm3
@ 2018-05-14 15:21 Jan Leonhardt
  0 siblings, 0 replies; only message in thread
From: Jan Leonhardt @ 2018-05-14 15:21 UTC (permalink / raw)
  To: u-boot

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 at 7e202000: 0, sdhci at 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)

-- 
Mit freundlichen Grüßen / With kind regards

Jan Leonhardt

IT-Dienstleistungen
IT-Konsultant
Administration
Softwareentwicklung

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180514/5beadff0/attachment.sig>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-14 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 15:21 [U-Boot] u-boot on raspberry pi cm3 Jan Leonhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.