• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Boot Debian from SD Card - Kernel hangs up  (Read 2502 times)
technolust
Newbie
*

Karma: 0
Posts: 10


View Profile
« on: December 16, 2009, 12:30:19 PM »

Hi everybody,

i received last week my new sheevaplug.
I want to install Debian on a SD Card and boot the sheevaplug from the SD Card.
I used the instructions on this page: http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html

I have a 1 GB SD Card with that layout:

Disk mmcblk0: 1023 MB, 1023934464 bytes
32 heads, 63 sectors/track, 992 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
mmcblk0p1   *           1         100      100768+  83  Linux
mmcblk0p2             101         700      604800   83  Linux
mmcblk0p3             701         992      294336   82  Linux swap / Solaris


When I boot from SD Card, this is the output:

Marvell>> run bootcmd
Error! cmd : 8, err : 0201
SD found. Card desciption is:
Manufacturer: 0x1c, OEM "SV"
Product name: "SDC ", revision 1.0
Serial number: 2164265954
Manufacturing date: 6/2005
CRC: 0x00, b0 = 0

4480111 bytes read

1820384 bytes read
## Booting image at 00400000 ...
Image Name: Debian kernel
Created: 2009-11-23 17:25:02 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1820320 Bytes = 1.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
Image Name: Debian ramdisk
Created: 2009-11-23 17:25:04 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4480047 Bytes = 4.3 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


Then the Sheevaplug hangs up, no further Output....

Here the environment variables:

Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
console=a0000
e=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
serverip=10.10.0.2
ipaddr=10.10.0.1
cesvcid=ULULULULULULPPULULULULULDA
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$ (serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethaddr=00:50:43:01:6A:95
run_diag=no
mainLineLinux=yes
arcNumber=2097
bootargs_console=console=ttyS0,115200
bootargs_root=root=/dev/mmcblk1p2
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x400000 0x0800000
bootargs=console=ttyS0,115200 root=/dev/mmcblk1p2
filesize=1BC6E0
bootcmd_mmc=mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage
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


I hope someone can help me...
Greetings
Michael
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #1 on: December 16, 2009, 01:17:21 PM »

at Marvell prompt do
Code:
Marvell>> setenv mainlineLinux=yes
Marvell>> saveenv
mainLineLinux first L should be small letter.
Logged

Good Luck Smiley

technolust
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #2 on: December 17, 2009, 11:49:47 AM »

Hi ccp,

thanks a lot, this was the error.
There were also a second fault in the environment variables. I typed mmcblk1p1 instead of mmcblk0p1
Now the Sheevaplugs boots from SD Card.

But there is still another problem. At the end of the boot-process there is a fsck running
which results in the following error:

Checking file systems...fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
fsck.ext2: No such file or directory while trying to open /dev/mmcblk1p1

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

fsck died with exit status 8
failed (code 8 ).
File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Please repair the file system manually. failed!


I think I must change /dev/mmcblk1p1 in /dev/mmcblk0p1
and I think this is located in /etc/fstab
But I cannot mount the SD Card to change fstab.
I get the error
mount: /dev/mmcblk0 already mounted or /mnt busy
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #3 on: December 17, 2009, 12:18:44 PM »

Hi ccp,

......

I think I must change /dev/mmcblk1p1 in /dev/mmcblk0p1
and I think this is located in /etc/fstab
But I cannot mount the SD Card to change fstab.
I get the error
mount: /dev/mmcblk0 already mounted or /mnt busy
You can not mount the SD as whole, you need to use the partition. so at linux command prompt, type
Code:
fsck -p /dev/mmcblk0p1
[ -e /mnt ] || mkdir /mnt
mount /dev/mmcblk0p1 /mnt
sed -i 's/mmcblk1/mmcblk0/g' /mnt/etc/fstab
umount /mnt
reboot

Good luck Smiley
Logged

Good Luck Smiley

technolust
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #4 on: December 18, 2009, 10:23:15 AM »

You are the best  Grin
It works! Thanks!

Greetings from snowy Stuttgart, Germany
Michael
Logged

truehl
Newbie
*

Karma: 0
Posts: 23


View Profile
« Reply #5 on: December 25, 2009, 02:22:29 AM »

Hi Michael,
greetings from Bonn to Stuttgart. Because it's a english forum I'll answer in english! I'm very interessted in setting up my system like yours. I'm messing around for 3 days now and got no success. Could you please tell me wether you have an UBIFS-System (from NewIT) or a "normal" one. I've an UBIFS Multi-Boot and dont get it to work. I simly want to boot debian squeezy or lenny from sd-crad and leave the original system untouched.

Merry Christmas!
Thomas
Logged

technolust
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #6 on: January 07, 2010, 05:06:26 AM »

Hi Thomas,

I have a "normal" one from NewIT without UBIFS and without Multi-Boot.
Since I killed the bootloader I had to use the "Sheevaplug-Installer" and now I have also UBIFS.
And I in the meantime I also changed my boot-arguments, so that I now have Multi-Boot.
First the sheevaplug boots from SD and if it is not present than it boots from Nand Flash.

Can you post your Boot-Arguments here?

Greetings
Michael
 
Logged

Pages: [1]
Print
Jump to: