View: 6964|Reply: 2

Linux not start from U-Boot

[Copy link]

1

threads

4

posts

19

credits

Novice

Rank: 1

credits
19
Published in 2016-3-30 17:10:55 | Show all floors |Read mode
Hello!
I work with OrangePi PC v1.2 board.
I build linux from https://github.com/ssvb/linux-sunxi, branch 20151207-embedded-lima-memtester-h3, and mainline u-boot.
Follow U-Boot output:
  1. U-Boot SPL 2016.03-g080c499 (Mar 30 2016 - 11:36:12)
  2. DRAM: 1024 MiB
  3. Trying to boot from MMC1


  4. U-Boot 2016.03-g080c499 (Mar 30 2016 - 11:36:12 +0300) Allwinner Technology

  5. CPU:   Allwinner H3 (SUN8I)
  6. Model: Xunlong Orange Pi PC
  7. I2C:   ready
  8. DRAM:  1 GiB
  9. MMC:   SUNXI SD/MMC: 0
  10. *** Warning - bad CRC, using default environment

  11. In:    serial
  12. Out:   serial
  13. Err:   serial
  14. Net:   No ethernet found.
  15. starting USB...
  16. USB0:   USB EHCI 1.00
  17. USB1:   USB OHCI 1.0
  18. USB2:   USB EHCI 1.00
  19. USB3:   USB OHCI 1.0
  20. USB4:   USB EHCI 1.00
  21. USB5:   USB OHCI 1.0
  22. scanning bus 0 for devices... 1 USB Device(s) found
  23. scanning bus 2 for devices... 1 USB Device(s) found
  24. scanning bus 4 for devices... 1 USB Device(s) found
  25. Hit any key to stop autoboot:  0
  26. switch to partitions #0, OK
  27. mmc0 is current device
  28. Scanning mmc 0:1...
  29. Found U-Boot script /boot.scr
  30. reading /boot.scr
  31. 241 bytes read in 17 ms (13.7 KiB/s)
  32. ## Executing script at 43100000
  33. reading script.bin
  34. 36044 bytes read in 64 ms (549.8 KiB/s)
  35. reading uImage
  36. 6817600 bytes read in 6952 ms (957 KiB/s)
  37. ## Booting kernel from Legacy Image at 48000000 ...
  38.    Image Name:   Linux-3.4.39+
  39.    Image Type:   ARM Linux Kernel Image (uncompressed)
  40.    Data Size:    6817536 Bytes = 6.5 MiB
  41.    Load Address: 40008000
  42.    Entry Point:  40008000
  43.    Verifying Checksum ... OK
  44.    Loading Kernel Image ... OK

  45. Starting kernel ...
Copy code


How can I solve this problem?
Thnak you and excuse my bad english.

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2016-3-30 18:47:53 | Show all floors
Hi,

My guess is that the "machid" doesn't match what the kernel expects.  If this is the case you'll have to add a "machid=????" line to boot.scr.  But unfortunately I don't know what machine ID your kernel expects.

Cheers,
Steven

1

threads

4

posts

19

credits

Novice

Rank: 1

credits
19
 Author| Published in 2016-3-30 19:45:38 | Show all floors
Thank you!
Set machid and bootm_boot_mode solve problem.
Early I use U-Boot from prebuilded image orangepi-plus-debian-server-card-v0.9.img and linux start without boot.cmd and script.bin.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list