please choosego to mobile | Continue to access the PC version
View: 21896|Reply: 23

rebuild U-Boot problem

[Copy link]

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
Published in 2015-6-11 07:28:44 | Show all floors |Read mode
Hello,

i have problem with rebuilding uboot for orange pi ... i do everythink as it says in "H3_Manual_build_howto" , after i dd the uboot-bin in the SDcard and try to boot there is nothink... i tryed to connect to the debug uart and i get following massage .

"cant find part named boot
sunxi_flash - sunxi_flash sub-system

Usage:
sunxi_flash read command parmeters :
parmeters 0 : addr to load(hex only)
parmeters 1 : the name of the part to be load
[parmeters 2] : the number of bytes to be load(hex only)
if [parmeters 2] not exist, the number of bytes to be load is the size of the part indecated on partemeter 1
boota: bad boot image magic, maybe not a boot.img?

Where is the problem?


5

threads

354

posts

2700

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2700
Published in 2015-6-12 05:01:00 | Show all floors
CORRECT!

Now what should be in boot_normal=
What should u-boot boot and from where (filesystem,partition) it should boot
little help maybe:
http://linux-sunxi.org/U-boot
http://linux-sunxi.org/UEnv.txt

The numbers let them be as they are
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

threads

354

posts

2700

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2700
Published in 2015-6-12 04:04:18 | Show all floors
OK, I think it's better you understand what you need to change right?
look, this is the default:
  1. #define CONFIG_EXTRA_ENV_SETTINGS \
  2.         "bootdelay=3\0" \
  3.         "bootcmd=run setargs_nand boot_normal\0" \
  4.         "console=ttyS0,115200\0" \
  5.         "nand_root=/dev/nandd\0" \
  6.         "mmc_root=/dev/mmcblk0p7\0" \
  7.         "init=/init\0" \
  8.         "loglevel=8\0" \
  9.         "setargs_nand=setenv bootargs console=${console} root=${nand_root}" \
  10.         "init=${init} loglevel=${loglevel} partitions=${partitions}\0" \
  11.         "setargs_mmc=setenv bootargs console=${console} root=${mmc_root}" \
  12.         "init=${init} loglevel=${loglevel} partitions=${partitions}\0" \
  13.         "boot_normal=sunxi_flash read 40007800 boot;boota 40007800\0" \
  14.         "boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800\0" \
  15.         "boot_fastboot=fastboot\0"
Copy code


What do you think it's needed to change?
look at you error messages.
You have not posted the complet error log.
repost:
cant find part named boot
sunxi_flash - sunxi_flash sub-system

Usage:
sunxi_flash read command parmeters :
parmeters 0 : addr to load(hex only)
parmeters 1 : the name of the part to be load
[parmeters 2] : the number of bytes to be load(hex only)
if [parmeters 2] not exist, the number of bytes to be load is the size of the part indecated on partemeter 1
boota: bad boot image magic, maybe not a boot.img?

hint: cant find part named boot

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

threads

354

posts

2700

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2700
Published in 2015-6-11 23:13:38 | Show all floors
Have you changed something in #define CONFIG_EXTRA_ENV_SETTINGS?
if yes post what you have changed.
if no ... it does not work if unchanged.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 03:25:49 | Show all floors
Thank you for your replay!
it is unchanged ... what should i change there ?

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 04:08:09 | Show all floors
i think it is set to boot from NAND and not from SDMMC am i right?
do you have skype ?

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 04:08:58 | Show all floors
ah my bad from it is made to boot from flash and cannot find boot there

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 04:23:39 | Show all floors
If I am right here

        "boot_normal=sunxi_flash read 40007800 boot;boota 40007800\0" \
        "boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800\0" \

sunxi_flash sould be changed to mmc but the the numbers, i do not know for what are they and should they be changed

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 05:23:34 | Show all floors
so maybe it should be
"boot_normal=mmc read 40007800 uImage; boota 40007800\0" \
or
"boot_normal=mmc read 40007800 dev/sdc1/uImage; boota 40007800\0" \

Am i right?

3

threads

31

posts

139

credits

Registered member

Rank: 2

credits
139
 Author| Published in 2015-6-12 05:27:00 | Show all floors
Edited by ivan_ucherdjiev at 2015-6-12 05:42

hmm or

"boot_normal=fatload mmc 0 40007800 uImage; bootm 40007800\0" \  
am i right?

by the way thank you very much for your support I am new in linux but i want to learn
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list