[U-Boot-Users] ppcboot on MPC860L
Detlev Zundel
dzu at denx.de
Thu Jul 26 19:38:46 CEST 2007
Hi Feiyang,
> now the SDRAM and Flash size of my board is increased, so the ppcboot needs to
^^^^^^^
Huh? You should really start using U-Boot. I mean you found the
mailing list, now start using the code ;)
> change, I changed the board/TQM8xx/flash.c and tqm8xx.c, and some other files.
If you are working on your own port, you should also come up with a
new platform and *not* change files relevant for other *supported*
platforms. Also I cannot stop repeating myself here on the mailing
list from advising you to use drivers/cfi_flash.c nowadays.
> now I use BDM to test the RAM ppcboot, I see "=>" from minicom, but printenv
> command returns:
>
> => printenv
> bootcmd=bootp; setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
> ip=$(ipaddr):$(serve+>>>rip):$(gatewayip):$(netmask):$(hostname)::off; bootm
> baudrate=115200
> loads_echo=1
> preboot=echo;echo 'Type "run flash_nfs" to mount root filesystem over NFS';echo
> clocks_in_mhz=1
>
> Environment size: 278/16380 bytes
>
> then I use flinfo command to see flash info :
> it returns:
> Bank # 1: Unknown Vendor flash_info: size=50502, sector_count=4, flash_id=
> 94204020
> Unknown Chip Type
> Size: 0 MB in 4 Sectors
> Sector Start Addresses:
> 10000000 10182036 (RO) 00102830 (RO) 00010220 (RO)
>
> Bank # 2: Unknown Vendor flash_info: size=40062280, sector_count=24576,
> flash_id=90200
> Unknown Chip Type
> Size: 1024 MB in 24576 Sectors
> Sector Start Addresses:
> 40002001 (RO) 00001402 00004000 00100100 (RO) 01000210
> 00014020 (RO) 10000980 (RO) 08204040 00000521 80408210 (RO)
> .....
>
> it seems that variables is not correct, the correct flash_id should be 0x0000
> 000B according to my modify.
>
> how dose it happen? and please offer me some suggestion?
Use current code (top of tree git), use the cfi_flash driver.
Cheers
Detlev
--
#!/usr/bin/perl
$c="print\"\#\!\/usr\/bin\/perl\
\\\$c\=\\\"\"\.quotemeta\(\$c\)\.\"\\\"\;\\n\$c;\"";
print"#!/usr/bin/perl\n\$c=\"".quotemeta($c)."\";\n$c;";
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the U-Boot
mailing list