• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Problem booting debian  (Read 2651 times)
loverdrive
Newbie
*

Karma: 0
Posts: 22


View Profile
« on: April 14, 2010, 11:00:27 AM »

Hi. I installed Debian with cyrius's howto and tarball (http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html)
But when i'm trying to boot the system, it gives me this error: (i installed it in a HD)


Quote
Begin: Assembling all MD arrays ... [    4.290000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038208
[    4.300000] Buffer I/O error on device mtdblock2, logical block 129776
[    4.310000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038208
[    4.310000] Buffer I/O error on device mtdblock2, logical block 129776
[    4.320000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038320
[    4.330000] Buffer I/O error on device mtdblock2, logical block 129790
[    4.340000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038320
[    4.350000] Buffer I/O error on device mtdblock2, logical block 129790
[    4.370000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038208
[    4.380000] Buffer I/O error on device mtdblock2, logical block 129776
[    4.390000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038208
[    4.400000] Buffer I/O error on device mtdblock2, logical block 129776
[    4.410000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038320
[    4.410000] Buffer I/O error on device mtdblock2, logical block 129790
[    4.420000] uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 1038320
[    4.430000] Buffer I/O error on device mtdblock2, logical block 129790
mdadm: No arrays found in config file or automatically
Failure: failed to assemble all arrays.
done.
Begin: Waiting for udev to process events ... done.
done.
Begin: Waiting for root file system ... [    8.400000] scsi 0:0:0:0: Direct-Access     Maxtor 6 Y080L0           0041 PQ: 0 ANSI: 0
[    8.470000] Driver 'sd' needs updating - please use bus_type methods
[    8.480000] sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)
[    8.490000] sd 0:0:0:0: [sda] Write Protect is off
[    8.490000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    8.500000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    8.510000]  sda: sda1 sda2 sda3
[    8.510000] sd 0:0:0:0: [sda] Attached SCSI disk
done.
Begin: Running /scripts/local-premount ... done.
mount: mounting /dev/sda2 on /root failed: No such device
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg.


BusyBox v1.10.2 (Debian 1:1.10.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)

could you help me, please?
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #1 on: April 14, 2010, 11:13:55 AM »

what uboot settings are you using ?.

my Uboot settings to boot from usb was :-

setenv mainlineLinux yes
setenv arcNumber 2097
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda2 rootdelay=10'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /uInitrd; ext2load usb 0:1 0x400000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x400000 0x0800000'
saveenv
« Last Edit: April 14, 2010, 11:15:57 AM by peter a » Logged

loverdrive
Newbie
*

Karma: 0
Posts: 22


View Profile
« Reply #2 on: April 14, 2010, 11:49:24 AM »

what uboot settings are you using ?.

my Uboot settings to boot from usb was :-

setenv mainlineLinux yes
setenv arcNumber 2097
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda2 rootdelay=10'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /uInitrd; ext2load usb 0:1 0x400000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x400000 0x0800000'
saveenv

I used settings copied from that site. Anyway, what is the command for see uboot settings?

PS: I upgraded to U-Boot 3.4.27+pingtoo (http://plugcomputer.org/plugforum/index.php?action=dlattach;topic=1134.0;attach=201)
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #3 on: April 14, 2010, 12:04:20 PM »

printenv
Logged

loverdrive
Newbie
*

Karma: 0
Posts: 22


View Profile
« Reply #4 on: April 14, 2010, 12:37:05 PM »

Quote
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:64
run_diag=no
bootcmd_mmc=mmcinit; ext2load mmc 0 0x01100000 /uInitrd; ext2load mmc 0 0x00800000 /uImage
ineLinux=yes
nExt=no
am=no
bootargs_console=console=ttyS0,115200
bootargs_root=root=/dev/sda3 rootdelay=10
bootcmd_usb=usb start; ext2load usb 0:1 0x01100000 /uInitrd; ext2load usb 0:1 0x00800000 /uImage
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x00800000 0x01100000
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=x=no
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
bootargs=console=ttyS0,115200 root=/dev/sda3 rootdelay=10

Environment size: 1498/131068 bytes
Logged

loverdrive
Newbie
*

Karma: 0
Posts: 22


View Profile
« Reply #5 on: April 14, 2010, 12:50:10 PM »

I've used this commands:

 
Quote
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda2 rootdelay=10'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x01100000 /uInitrd; ext2load usb 0:1 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x00800000 0x01100000'
saveenv

Should I change any parameter to use ext3 instead ext2?
Logged

fragfutter
Sr. Member
****

Karma: 12
Posts: 280


View Profile
« Reply #6 on: April 14, 2010, 01:02:51 PM »

Begin: Waiting for root file system ... [    8.400000] scsi 0:0:0:0: Direct-Access     Maxtor 6 Y080L0           0041 PQ: 0 ANSI: 0
[    8.470000] Driver 'sd' needs updating - please use bus_type methods
[    8.480000] sd 0:0:0:0: [sda] 160086528 512-byte hardware sectors: (81.9 GB/76.3 GiB)
[    8.490000] sd 0:0:0:0: [sda] Write Protect is off
[    8.490000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    8.500000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    8.510000]  sda: sda1 sda2 sda3
[    8.510000] sd 0:0:0:0: [sda] Attached SCSI disk
done.
Begin: Running /scripts/local-premount ... done.
mount: mounting /dev/sda2 on /root failed: No such device

you are trying to mount sda2 as root. This fails.

What are your partitions? Propably sda1 is a small boot partition, sda2 is swap and sda3 is your filesystem. Either try that by changing it in the u-boot environment or check using fdisk (on a different host or look if fdisk is part of the initrd)

I'm not absolutely sure, but could you also check (at the initrd prompt) if /dev/sda2 exists (ls -l /dev/sda*). It should be created by udev, but one never knows...

Loading with ext2load is correct and working. It does not matter if the disk is formatted as ext3/4, the readonly part works the same way.
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #7 on: April 14, 2010, 03:34:25 PM »

if you have followed :-  http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html you should have it partitions

So the problem is you are mounting the swap as the root
eg bootargs_root=root=/dev/sda3 rootdelay=10

should be. bootargs_root=root=/dev/sda2 rootdelay=10

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          14      112423+  83  Linux
/dev/sda2              15         210     1574370   83  Linux
/dev/sda3             211         251      329332+  82  Linux swap
Logged

loverdrive
Newbie
*

Karma: 0
Posts: 22


View Profile
« Reply #8 on: April 17, 2010, 09:20:02 AM »

Ok, there was a problem with partition table Smiley Now i solved, it boot correctly!
Only an error:
Quote
Activating swap...[   19.220000] Unable to find swap-space signature
failed.

but it works..
Logged

fragfutter
Sr. Member
****

Karma: 12
Posts: 280


View Profile
« Reply #9 on: April 17, 2010, 10:16:58 AM »

mkswap /dev/sda3
Logged

Pages: [1]
Print
Jump to: