SMILE Plug MMC boot - Bad Data CRC

This forum is for supported devices using an ARMv7 Marvell SoC.

SMILE Plug MMC boot - Bad Data CRC

Postby lharmon » Mon Oct 28, 2013 7:33 pm

$this->bbcode_second_pass_code('', '
BootROM 1.08
Booting from NAND flash
DDR3 Training Sequence - Ver 2.1.6
DDR3 Training Sequence - Number of DIMMs detected: 1
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** LOADER **


U-Boot 2009.08 (Aug 13 2013 - 03:09:28)Marvell version: 1.1.2 NQ
U-Boot Addressing:
Code: 00600000:006AFFF0
BSS: 006F8E40
Stack: 0x5fff70
PageTable: 0x8e0000
Heap address: 0x900000:0xe00000
Board: DB-88F6710-BP
SoC: MV6710 A1
CPU: Marvell PJ4B v7 UP (Rev 1) LE
CPU @ 1200Mhz, L2 @ 600Mhz
DDR @ 600Mhz, TClock @ 200Mhz
DDR 16Bit Width, FastPath Memory Access
PEX 0: Root Complex Interface, Detected Link X1
PEX 1: Root Complex Interface, Detected Link X1
DRAM: 512 MB
CS 0: base 0x00000000 size 512 MB
Addresses 14M - 0M are saved for the U-Boot usage.
NAND: 0x18010 = 11111111
0x18010 = 11111111
1024 MiB
Bad block table found at page 262016, version 0x01
Bad block table found at page 261888, version 0x01
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
RGMII0 Phy
RGMII1 Phy
PEX0 (Lane 0)
PEX1 (Lane 1)
phy16= 72
phy16= 72
MMC: MRVL_MMC: 0
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0
read 988190 from 988148:0
read /uImage from 0x6400000 : 0
reading /uImage
Invalid FAT entry

612352 bytes read
## Booting kernel from Legacy Image at 06400000 ...
Image Name: linux-mvebu-smileplug
Created: 2013-10-26 1:01:26 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4049525 Bytes = 3.9 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Marvell>>
')
Last edited by WarheadsSE on Mon Oct 28, 2013 7:47 pm, edited 1 time in total.
Reason: Code tags are our friends.
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: SMILE Plug MMC boot - Bad Data CRC

Postby lharmon » Mon Oct 28, 2013 7:38 pm

I am unable automatically to boot into Linux.

However, I can manually boot Linux.
Has anyone else seen this?

$this->bbcode_second_pass_code('', '
Marvell>> fatload mmc 0:1 0x6400000 /uImage
read 987de8 from 987da0:0
read /uImage from 0x6400000 : 0
reading /uImage

4049589 bytes read
Marvell>> bootm 0x6400000
## Booting kernel from Legacy Image at 06400000 ...
Image Name: linux-mvebu-smileplug
Created: 2013-10-26 1:01:26 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4049525 Bytes = 3.9 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.12.0-rc6-5-ARCH (nobody@root-chroot-copy) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Fri Oct 25 19:56:44 CDT 2013
Machine: Marvell Armada 370/XP (Device Tree), model: Marvell SMILE Plug
CPU: All CPU(s) started in SVC mode.
PERCPU: Embedded 7 pages/cpu @c0f6f000 s7680 r8192 d12800 u32768
Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
allocated 1048576 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Virtual kernel memory layout:
')
Last edited by WarheadsSE on Mon Oct 28, 2013 7:47 pm, edited 1 time in total.
Reason: Code tags are our friends.
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: SMILE Plug MMC boot - Bad Data CRC

Postby WarheadsSE » Mon Oct 28, 2013 7:48 pm

$this->bbcode_second_pass_quote('', 'I')nvalid FAT entry
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: SMILE Plug MMC boot - Bad Data CRC

Postby lharmon » Thu Oct 31, 2013 7:31 pm

Care to elaborate?

when running the bootcmd from u-boot I see the "invalid FAT entry" message
But when I manually type fatload ..... I don't see the error!
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: SMILE Plug MMC boot - Bad Data CRC

Postby kmihelich » Thu Oct 31, 2013 11:34 pm

You might re-setenv the bootcmd_mmc variable to be sure it's correct. Obviously it's having an issue running the command in the variable, but doesn't have a problem running the command itself.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: SMILE Plug MMC boot - Bad Data CRC

Postby lharmon » Thu Nov 07, 2013 2:52 pm

Same SD card works fine on a second SMILE plug.
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: SMILE Plug MMC boot - Bad Data CRC

Postby ineiti » Sat Dec 07, 2013 8:33 pm

I had some troubles with combinations of SD-cards - some even deteriorated over time (1 week of intensive installation) from no problems to trash. I'm using the same boot-method as described in

http://archlinuxarm.org/platforms/armv7/marvell/smile-plug

One thing I found is that you can slow down the usage of the card in the kernel by booting with an additional bootarg:

$this->bbcode_second_pass_code('', 'mvsdio.maxfreq=1000000')

Which slows down to about 4MBps (or 1MBps on Kernel >= 3.12.6 or perhaps earlier). With regard to not being able to read the kernel from the SD-card, I finished reading the kernel in, then storing it in the internal NAND - which only works from u-boot:

$this->bbcode_second_pass_code('', 'mmc rescan 0
fatload mmc 0:1 0x6400000 uImage
nand erase 0x400000 0x400000
nand write 0x6400000 0x400000 0x400000
')

And then you can use the nand-boot like this:

$this->bbcode_second_pass_code('', 'setenv bootcmd "run bootcmd_nand"
')

Of course there is no automatic kernel-update anymore.

On another note, there was an updated uboot.bin from 10th of September, but I can't find it anymore on the site...
ineiti
 
Posts: 39
Joined: Fri Aug 23, 2013 9:03 pm


Return to Marvell

Who is online

Users browsing this forum: No registered users and 8 guests