• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: [SOLVED]Sheevaplug won't boot debian  (Read 9100 times)
ebp
Newbie
*

Karma: 1
Posts: 24


View Profile
« on: November 26, 2009, 10:39:22 AM »

Hi i have just installed debian on a sd card using this guide: http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html

During the boot process the sheevaplug hangs and a message say "waiting for root filesystem"

Code:
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-uuid/fdf730a2-8b3f-41f1-8759-7066bd8a55d8 does not exist. Dropping to a shell!


BusyBox v1.14.2 (Debian 1:1.14.2-2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)


Hope you can help me Smiley
« Last Edit: November 27, 2009, 09:39:28 AM by ebp » Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #1 on: November 26, 2009, 01:36:42 PM »

Can you post the whole boot log, as as well the output of "printenv" from uboot?
Logged

ebp
Newbie
*

Karma: 1
Posts: 24


View Profile
« Reply #2 on: November 26, 2009, 03:03:36 PM »

Here's a link for both the output of printenv and the whole boot log: http://pastebin.com/f3dbc677e
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #3 on: November 27, 2009, 02:30:02 AM »

Looks like you didn't issue this command before starting the installer:

Code:
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most

Without the base-installer/initramfs-tools/driver-policy=most you get the problem you're seeing (I filed a bug with patch for this but it didn't get accepted yet).  The easiest solution would be to do the install again.
Logged

ebp
Newbie
*

Karma: 1
Posts: 24


View Profile
« Reply #4 on: November 27, 2009, 09:39:06 AM »

This time i double checked everything and now it's works perfectly, thanks Smiley 
Logged

Zortrium
Newbie
*

Karma: 0
Posts: 31


View Profile
« Reply #5 on: May 10, 2010, 06:45:44 PM »

Sorry to resurrect an old topic, but I'm having this same problem and can't for the life of me get past it.  I've tripled checked my commands, run the installer multiple times, and everything always goes smoothly until I try to boot, at which point I get

Code:
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda2 does not exist. Dropping to a shell!

I've installed everything onto a 4 gig SD card.  Any ideas?

EDIT: I'm running u-boot 3.4.27 pingtoo patch.01, which I've been running without issue on my other plug off a USB drive, but this is my first time trying to boot off an SD card.

EDIT 2: Here's what I get from fdisk when I plug the SD card into my desktop (the partitions mount normally and I can see the Debian installation just fine):

Code:
vmsheeva$ sudo fdisk -l /dev/sdb

Disk /dev/sdb: 3999 MB, 3999268864 bytes
124 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Disk identifier: 0x0004af11

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          58      221184   83  Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 32, 33) logical=(0, 33, 3)
Partition 1 has different physical/logical endings:
     phys=(27, 169, 14) logical=(57, 99, 62)
Partition 1 does not end on cylinder boundary.
/dev/sdb2              58         958     3460096   83  Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(27, 169, 15) logical=(57, 100, 1)
Partition 2 has different physical/logical endings:
     phys=(458, 108, 34) logical=(957, 115, 62)
Partition 2 does not end on cylinder boundary.
/dev/sdb3             959        1017      222208+   5  Extended
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(458, 141, 3) logical=(958, 25, 2)
Partition 3 has different physical/logical endings:
     phys=(486, 55, 17) logical=(1016, 1, 2)
Partition 3 does not end on cylinder boundary.
/dev/sdb5             959        1017      222208   82  Linux swap / Solaris
« Last Edit: May 10, 2010, 07:06:53 PM by Zortrium » Logged

Titus_Crow
Newbie
*

Karma: 3
Posts: 6



View Profile
« Reply #6 on: May 11, 2010, 04:09:20 AM »

I can only suggest to quadruple check your uboot env :p ..
More seriously, i think you have made a confusion about sd card and usb drive :

Quote
EDIT: I'm running u-boot 3.4.27 pingtoo patch.01, which I've been running without issue on my other plug off a USB drive, but this is my first time trying to boot off an SD card.
Without changes on uboot env, it is quite normal that a switch between a usb drive and a sd card don't work.
Actually, on Sheevaplug, sd cards are identified with a mmc thing.

http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html

Code:
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x01100000 /uInitrd; ext2load mmc 0 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv

from tbm website.

Hope this will help ^^'
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #7 on: May 11, 2010, 04:46:44 AM »

If you want to switch from USB to SD, you have to explicitly specify root= when booting.
Logged

Zortrium
Newbie
*

Karma: 0
Posts: 31


View Profile
« Reply #8 on: May 11, 2010, 05:04:56 AM »

Perhaps I wasn't clear in my earlier post -- I have TWO plugs, the first of which I set up awhile ago booting off USB and is completely fine.  I just got my second plug and have been trying to set it up using an SD card, during which I've run into this problem.  I've never booted this second plug off USB.  Do I need to explicitly set root= in uboot?  I got the plug from someone else, so it's possible there are leftover values in uboot.  Below is my env:

Code:
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@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
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;
ethaddr=00:50:43:5f:23:27
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=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root) root=/dev/nfs rw nfsroot=10.4.50.5:/mnt/ARM_FS/ ip=10.4.50.165:10.4.50.5:::DB88FXX81:eth0:none mv_net_confs
arcNumber=2097
bootargs_console=console=ttyS0,115200
bootcmd_mmc=mmcinit; ext2load mmc 0 0x01100000 /uInitrd; ext2load mmc 0 0x00800000 /uImage
bootcmd=setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
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: 1593/131068 bytes
Marvell>>
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #9 on: May 11, 2010, 06:32:57 AM »

Well, your boot log says:
 ALERT! /dev/sda2 does not exist. Dropping to a shell!
but you're claiming you're booting from an MMC/SD card, so it should not be /dev/sda2 but /dev/mmc...

How did you install the system that is on your MMC card?

Logged

Zortrium
Newbie
*

Karma: 0
Posts: 31


View Profile
« Reply #10 on: May 11, 2010, 06:40:00 AM »

Yes, I thought that looked suspicious too.  I installed via the Debian installer, exactly following the online instructions, and had no problems with the installation whatsoever.

EDIT: Okay, that was the problem.  I added root=/dev/mmcblk0p2 to the bootcmd and everything is working now.  Thanks!
« Last Edit: May 11, 2010, 07:05:24 AM by Zortrium » Logged

hausschuh
Newbie
*

Karma: 0
Posts: 33


View Profile
« Reply #11 on: June 02, 2010, 08:25:10 AM »

I have the exact same problem and I also get a "/dev/sda2 does not exist" although I have used your (tbm) line for the SD card:

Quote
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x01100000 /uInitrd; ext2load mmc 0:1 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv

and went through the installation 5 times using different SD Cards always using the "SD/MMC" section.

I'm not sure where to add the "root=/dev/mmcblk0p2" exactly but I'll find out using trial & error  Wink
Logged

Zortrium
Newbie
*

Karma: 0
Posts: 31


View Profile
« Reply #12 on: June 02, 2010, 12:54:51 PM »

I have the exact same problem and I also get a "/dev/sda2 does not exist" although I have used your (tbm) line for the SD card:

Quote
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x01100000 /uInitrd; ext2load mmc 0:1 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv

and went through the installation 5 times using different SD Cards always using the "SD/MMC" section.

I'm not sure where to add the "root=/dev/mmcblk0p2" exactly but I'll find out using trial & error  Wink

This is what I'm running right now:

Code:
bootargs_console=console=ttyS0,115200
bootargs_root=root=/dev/mmcblk0p2
bootcmd_mmc=mmcinit; ext2load mmc 0 0x01100000 /uInitrd; ext2load mmc 0 0x00800000 /uImage
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x00800000 0x01100000

So assuming the 2nd partition is the root partition on your SD card, you can run:

Code:
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root root=/dev/mmcblk0p2
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x01100000 /uInitrd; ext2load mmc 0:1 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv
« Last Edit: June 02, 2010, 12:58:24 PM by Zortrium » Logged

hausschuh
Newbie
*

Karma: 0
Posts: 33


View Profile
« Reply #13 on: June 02, 2010, 01:55:10 PM »

Thanks a lot.
It's finally working!
Logged

gadgetreviewsus
Guest
« Reply #14 on: June 15, 2010, 10:40:39 PM »

Thank You
Logged

Pages: [1]
Print
Jump to: