• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1] 2 3 4
Author Topic: U-boot 3.4.23 - mmcinit has odd output  (Read 9618 times)
samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« on: November 07, 2009, 06:35:53 AM »

Last week I was yammering about v3.4.19 corrupting its environment.  To recap, the "console" environment variable was being set to "a0000".  That bug was declared fixed in v3.4.23.  Oddly, when I upgraded to v3.4.23, reset the target, and re-entered the necessary environment variables in the hopes of one day actually getting the SD card to support the RFS, I now see the "a0000" string as part of the output of the mmcinit command.  A capture of my Procomm session is shown below.  I do not, however, see the "cmd 8, error 0201" the first time I enter the mmcinit command.  With v3.4.19 I always saw the error the first time I typed mmcinit but never on subsequent attempts.

-----------------

Marvell>>
Marvell>> bubt ?
Using egiga0 device
TFTP from server 10.4.50.5; our IP address is 10.4.50.165
Filename '?'.
Load address: 0x2000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
Marvell>> printenv serverip
serverip=10.4.50.5
Marvell>> setenv serverip 192.168.76.100
Marvell>> printenv ipaddr
ipaddr=10.4.50.165
Marvell>> setenv ipaddr 192.168.76.42
Marvell>> bubt uboot_030423.bin
Using egiga0 device
TFTP from server 192.168.76.100; our IP address is 192.168.76.42
Filename 'uboot_030423.bin'.
Load address: 0x2000000
Loading: #################################################################
         ############################
done
Bytes transferred = 474596 (73de4 hex)

**Warning**
If U-Boot Endiannes is going to change (LE->BE or BE->LE), Then Env parameters s
hould be overriden..
Override Env parameters? (y/n) n
Erase 0 - 655360 ...
Copy to Nand Flash...
done
Marvell>> reset
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Nov  4 2009 - 12:58:36) Marvell version: 3.4.23

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>>
Marvell>>
Marvell>>
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x1
00000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/m
tdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x20
00000;
ethaddr=00:50:43:be:26:05
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootargs_root=root=/dev/mtdblock2 ro
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb0
0000@0x500000(rootfs) rw root=/dev/mtdblock1 rw
bootcmd=nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

Environment size: 1300/131068 bytes
Marvell>> setenv serverip 192.168.76.100
Marvell>> setenv ipaddr 192.168.76.42
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> printenv bootargs_root
bootargs_root=root=/dev/mtdblock2 ro
Marvell>> setenv bootargs_root 'root=/dev/mmcblk0p1 rw'
Marvell>> printenv bootargs_root
bootargs_root=root=/dev/mmcblk0p1 rw
Marvell>> printenv bootargs_console
## Error: "bootargs_console" not defined
Marvell>> setenv bootargs 'console=ttyS0,115200 $(bootargs_root)'
Marvell>> printenv bootargs
bootargs=console=ttyS0,115200 $(bootargs_root)
Marvell>> setenv bootcmd 'mmcinit; nand read.e 0x00800000 0x00100000 0x00400000;
 bootm 0x00800000'
Marvell>> printenv bootargs
bootargs=console=ttyS0,115200 $(bootargs_root)
Marvell>> printenv bootcmd
bootcmd=mmcinit; nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> mmcinit
SDa0000 found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SU02G", revision 8.0
Serial number:      553266355
Manufacturing date: 7/2008
CRC:                0x00, b0 = 0
Marvell>>
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #1 on: November 07, 2009, 07:33:02 AM »

Quote
Override Env parameters? (y/n) n

Since there was a bug in 3.4.19 regarding environment console, you should ask uboot to override the Env parameters when upgrading to new uboot (3.4.23) during the bubt procedure.

You can also do it by entering resetenv after uboot upgrade and perform reset afterwards.
Before resetting your uboot Env, save them as text somewhere...
Logged

samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« Reply #2 on: November 07, 2009, 10:12:47 AM »

resetenv does not appear to clear the issue:


Marvell>> resetenv
Erase Env parameters offset 0xa0000... done
Warning: Default Environment Variables will take effect Only after RESET

Marvell>> reset
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Nov  4 2009 - 12:58:36) Marvell version: 3.4.23

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
*** Warning - bad CRC or NAND, using default environment

Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> setenv serverip 192.168.76.100
Marvell>> setenv ipaddr 192.168.76.42
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> setenv bootargs_root 'root=/dev/mmcblk0p1 rw'
Marvell>> setenv bootargs 'console=ttyS0,115200 $(bootargs_root)'
Marvell>> setenv bootcmd 'mmcinit; nand read.e 0x00800000 0x00100000 0x00400000;
 bootm 0x00800000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> mmcinit
SDa0000 found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SU02G", revision 8.0
Serial number:      553266355
Manufacturing date: 7/2008
CRC:                0x00, b0 = 0
Logged

samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« Reply #3 on: November 07, 2009, 10:19:01 AM »

And neither does reflashing the board with override = yes:

Marvell>> bubt uboot_030423.bin
Using egiga0 device
TFTP from server 192.168.76.100; our IP address is 192.168.76.42
Filename 'uboot_030423.bin'.
Load address: 0x2000000
Loading: #################################################################
         ############################
done
Bytes transferred = 474596 (73de4 hex)

**Warning**
If U-Boot Endiannes is going to change (LE->BE or BE->LE), Then Env parameters s
hould be overriden..
Override Env parameters? (y/n) y
Erase Env parameters sector 655360...
Erase 0 - 655360 ...
Copy to Nand Flash...
done
Marvell>> reset
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Nov  4 2009 - 12:58:36) Marvell version: 3.4.23

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
*** Warning - bad CRC or NAND, using default environment

Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> setenv serverip 192.168.76.100
Marvell>> setenv ipaddr 192.168.76.42
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> setenv bootargs_root 'root=/dev/mmcblk0p1 rw'
Marvell>> setenv bootargs 'console=ttyS0,115200 $(bootargs_root)'
Marvell>> setenv bootcmd 'mmcinit; nand read.e 0x00800000 0x00100000 0x00400000;
 bootm 0x00800000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> mmcinit
SDa0000 found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SU02G", revision 8.0
Serial number:      553266355
Manufacturing date: 7/2008
CRC:                0x00, b0 = 0
Marvell>>
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #4 on: November 08, 2009, 12:20:15 AM »

 Embarrassed strange bug, I managed to get it also.
Quote
Marvell>> mmcinit
SDa0000 found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SD02G", revision 8.0
Serial number:      549437430
Manufacturing date: 6/2008
CRC:                0x00, b0 = 0
I will forward it and get it fixed for next version, in the meantime you can workaround this with SDHC card, I tried it with Patriot 8GB C6 SDHC card:
Quote
Marvell>> mmcinit
SDHC found. Card desciption is:
Manufacturer:       0x27, OEM "PH"
Product name:       "SD08G", revision 2.0
Serial number:      2952791052
Manufacturing date: 12/2008
CRC:                0x00, b0 = 0
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #5 on: November 08, 2009, 06:26:00 AM »

Hi samweber,

OK, so now it looks like this bug is fixed, please try it out.

-rooster

* uboot.bin (463.47 KB - downloaded 138 times.)
Logged

samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« Reply #6 on: November 08, 2009, 09:33:35 AM »

The plot thickens a bit.  This round of bubt seems to have angered the flash.  Unless I typed something stupid, I now seem to have a different problem.  The mmcinit command did clear up as advertized.

-----------------

Using egiga0 device
TFTP from server 192.168.76.100; our IP address is 192.168.76.42
Filename 'uboot_030423x.bin'.
Load address: 0x2000000
Loading: #################################################################
         ############################
done
Bytes transferred = 474592 (73de0 hex)

**Warning**
If U-Boot Endiannes is going to change (LE->BE or BE->LE), Then Env parameters s
hould be overriden..
Override Env parameters? (y/n) y
Erase Env parameters sector 655360...
Erase 0 - 655360 ...
Copy to Nand Flash...
done
Marvell>> reset
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Nov  8 2009 - 13:59:19) Marvell version: 3.4.24

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
*** Warning - bad CRC or NAND, using default environment

Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> resetenv
Erase Env parameters offset 0xa0000... done
Warning: Default Environment Variables will take effect Only after RESET

Marvell>> reset
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Nov  8 2009 - 13:59:19) Marvell version: 3.4.24

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
*** Warning - bad CRC or NAND, using default environment

Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> ver

U-Boot 1.1.4 (Nov  8 2009 - 13:59:19) Marvell version: 3.4.24
Marvell>> setenv serverip 192.168.76.100
Marvell>> setenv ipaddr 192.168.76.42
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> setenv bootargs_root 'root=/dev/mmcblk0p1 rw'
Marvell>> setenv bootargs 'console=ttyS0,115200 $(bootargs_root)'
Marvell>> setenv bootcmd 'mmcinit; nand read.e 0x00800000 0x00100000 0x00400000;
 bootm 0x00800000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> mmcinit
SD found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SU02G", revision 8.0
Serial number:      553266355
Manufacturing date: 7/2008
CRC:                0x00, b0 = 0
Marvell>> boot
SD found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SU02G", revision 8.0
Serial number:      553266355
Manufacturing date: 7/2008
CRC:                0x00, b0 = 0

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x100000 --   0% complete.reading NAND page at offset 0x100800
 failed
 4194304 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-04-04   1:49:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2070252 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #7 on: November 08, 2009, 12:08:04 PM »

what is the value of nandEcc?
Logged

samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« Reply #8 on: November 09, 2009, 05:14:30 AM »

Marvell>> printenv nandEcc
nandEcc=1bit
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #9 on: November 09, 2009, 05:47:10 AM »

can you try re-flash the uImage to 0x100000 (from uboot) while the DOK (with uimage on it) is connected to the plug:
>usb start
>fatload usb 0 0x00800000 uImage
>nand erase clean 0x00100000 0x00400000
>nand write.e 0x00800000 0x00100000 0x00400000
Logged

samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« Reply #10 on: November 09, 2009, 06:35:19 AM »

Here's a summary of what happened.

0. I entered the command sequence specified (note: The uImage file on my USB storage media is from the installer that everyone but me can make work.  I did this in hopes of making progress towards the end goal of having RFS support on my SD card.)
1. The commands seemed to work without incident.
2. I did a printenv and noticed a number of potentially bad omens:
   a. "console" is whacked to a0000 again.
   b. "nandEcc" now appears to have a value of "bit" and seems to have an embedded carriage return and/or line feed.
3. Boot process emits a read failure.  No visible output after the kernel is decompressed.

Disclaimer: Always the possibility of a boneheaded keyboard error on my end.  I find that occasional typing mistakes on critical commands help reinforce one's humility.

------------------------------------

Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> fatload usb 0 0x00800000 uImage
reading uImage
................................................................................
................................................................................
................................................................................
...............

2620504 bytes read
Marvell>> nand erase clean 0x00100000 0x00400000

NAND erase: device 0 offset 0x100000, size 0x400000
Erasing at 0x4e0000 -- 100% complete. Cleanmarker written at 0x4e0000.
OK
Marvell>> nand write.e 0x00800000 0x00100000 0x00400000

NAND write: device 0 offset 0x100000, size 0x400000

Writing data at 0x4ff800 -- 100% complete.
 4194304 bytes written: OK
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
console=a0000
e=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/m
tdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x20
00000;
ethaddr=00:50:43:7a:32:26
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=
bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
serverip=192.168.76.100
ipaddr=192.168.76.42
bootargs_root=root=/dev/mmcblk0p1 rw
bootargs=console=ttyS0,115200 $(bootargs_root)
bootcmd=mmcinit; nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
filesize=27FC58

Environment size: 1259/131068 bytes
Marvell>> boot
SD found. Card desciption is:
Manufacturer:       0x03, OEM "SD"
Product name:       "SU02G", revision 8.0
Serial number:      553266355
Manufacturing date: 7/2008
CRC:                0x00, b0 = 0

NAND read: device 0 offset 0x100000, size 0x400000

reading NAND page at offset 0x100000 failed
 4194304 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.30.2
   Created:      2009-07-23   1:53:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2620440 Bytes =  2.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
................................................................................
............................. done, booting the kernel.
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #11 on: November 09, 2009, 02:06:15 PM »

Your bootargs looks wrong,
Quote
ipaddr=192.168.76.42
bootargs_root=root=/dev/mmcblk0p1 rw
bootargs=console=ttyS0,115200 $(bootargs_root)
bootcmd=mmcinit; nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
stdin=serial
stdout=serial

I think it should be bootargs=console=ttyS0,115200 root=/dev/mmcblk0p1 rw

good luck Smiley
Logged

Good Luck Smiley

samweber
Jr. Member
**

Karma: 0
Posts: 61


View Profile
« Reply #12 on: November 09, 2009, 04:32:56 PM »

I'm pretty sure $(bootargs_root) gets expanded to yield the suggested line.  The reason I'm confident is that rooster would have jumped on me immediately if the answer were simple.  His silence makes me think I have identified a nastiness that transcends my unreliable typing skills.
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #13 on: November 09, 2009, 10:00:36 PM »

Hi samweber,

The reason I asked about nandEcc is that I noticed that this env gets a null value and a new env appears: bit.
So to finish my installation I had to set he nandEcc=1bit.
In your case I see the same phenomenon but the uboot did load the uImage from nand and manage to run it.
So basically it looks OK, the next step would be setting the right uboot env to make kernel boot from rootfs on SD.

Please look in the installer (aplug-installer-v1.0\uboot\uboot-env\uboot-mmc-custom.txt ) for reference regarding uboot settings.

I will try to understand the nandEcc issue.
Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #14 on: November 10, 2009, 06:02:07 AM »

Hi,

The nandEcc bug found in last uboot version I uploaded: http://plugcomputer.org/plugforum/index.php?topic=921.msg5698#msg5698

this fixed with this image, please use it with your installer with the attached

* uboot-dflt.txt (1.31 KB - downloaded 236 times.)
* uboot.bin (463.47 KB - downloaded 629 times.)
« Last Edit: November 11, 2009, 09:32:57 PM by rooster » Logged

Pages: [1] 2 3 4
Print
Jump to: