Buffer I/O error on device mtdblock2

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Buffer I/O error on device mtdblock2

Postby setti » Tue Sep 04, 2012 9:55 pm

Hi,

I did an upgrade of uboot from within chroot environment, because i only could boot into rescue (i dont remember anymore why).
The upgrade of uboot seemed to be successfull (netconsole looks different know).
But i still cant boot my (in chroot also updated kernel linux-kirkwood 3.5.2) and get alot of these error messages in my kernel netconsole:

$this->bbcode_second_pass_code('', '[ 20.048552] Bad eraseblock 1106 at 0x000008a40000
[ 20.053317] Bad eraseblock 1107 at 0x000008a60000
[ 20.058091] Bad eraseblock 1108 at 0x000008a80000
[ 20.062847] Bad eraseblock 1109 at 0x000008aa0000
[ 20.067623] Bad eraseblock 1110 at 0x000008ac0000
[ 20.072388] Bad eraseblock 1111 at 0x000008ae0000
')

and

$this->bbcode_second_pass_code('', '
[ 24.538640] 4 cmdlinepart partitions found on MTD device orion_nand
[ 24.544933] Creating 4 MTD partitions on "orion_nand":
[ 24.550117] 0x000000000000-0x000000100000 : "u-boot"
[ 24.556050] 0x000000100000-0x000000500000 : "uImage"
[ 24.561887] 0x000000500000-0x000002500000 : "rootfs"
[ 24.567671] 0x000002500000-0x000010000000 : "data"
[ 24.574078] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 24.581041] mv643xx_eth smi: probed
[ 24.582906] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 02:50:43:e3:54:7d
[ 24.591880] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 24.591937] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 24.591966] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 24.617361] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 24.637353] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 24.637918] hub 1-0:1.0: USB hub found
[ 24.637942] hub 1-0:1.0: 1 port detected
[ 24.638300] Initializing USB Mass Storage driver...
[ 24.638407] usbcore: registered new interface driver usb-storage
[ 24.638415] USB Mass Storage support registered.
[ 24.638498] usbcore: registered new interface driver libusual
[ 24.638790] mousedev: PS/2 mouse device common for all mice
[ 24.957359] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 25.109364] scsi0 : usb-storage 1-1:1.0
[ 25.647351] rtc-mv rtc-mv: internal RTC not ticking
[ 25.652398] sdhci: Secure Digital Host Controller Interface driver
[ 25.652405] sdhci: Copyright(c) Pierre Ossman
[ 25.687372] mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
[ 25.696481] sdhci-pltfm: SDHCI platform and OF driver helper
[ 25.698668] Registered led device: plug:red:misc
[ 25.698769] Registered led device: status:green:health
[ 25.698867] Registered led device: status:blue:health
[ 25.699091] usbcore: registered new interface driver r8712u
[ 25.699317] gre: GRE over IPv4 demultiplexor driver
[ 25.699446] TCP: cubic registered
[ 25.699456] NET: Registered protocol family 17
[ 25.699527] lib80211: common routines for IEEE802.11 drivers
[ 25.699536] lib80211_crypt: registered algorithm 'NULL'
[ 25.699570] Key type dns_resolver registered
[ 25.704492] registered taskstats version 1
[ 25.705386] netpoll: netconsole: local port 6665
[ 25.705398] netpoll: netconsole: local IP 10.10.10.3
[ 25.705404] netpoll: netconsole: interface 'eth0'
[ 25.705411] netpoll: netconsole: remote port 6666
[ 25.705417] netpoll: netconsole: remote IP 10.10.10.4
[ 25.705424] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
[ 25.705433] netpoll: netconsole: device eth0 not up yet, forcing it
[ 26.108158] scsi 0:0:0:0: Direct-Access Seagate Portable 0130 PQ: 0 ANSI: 4
[ 26.117099] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 26.122730] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[ 26.131827] sd 0:0:0:0: [sda] Write Protect is off
[ 26.136644] sd 0:0:0:0: [sda] Mode Sense: 2f 08 00 00
[ 26.137201] sd 0:0:0:0: [sda] No Caching mode page present
[ 26.142756] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 26.150955] sd 0:0:0:0: [sda] No Caching mode page present
[ 26.156470] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 26.163412] sda: sda1 sda2
[ 26.165954] sd 0:0:0:0: [sda] No Caching mode page present
[ 26.171514] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 26.177659] sd 0:0:0:0: [sda] Attached SCSI disk
[ 27.503964] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 27.537584] console [netcon0] enabled
[ 27.537592] netconsole: network logging started
[ 27.537661] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 27.544773] Freeing init memory: 172K
[ 37.771464] end_request: I/O error, dev mtdblock3, sector 0
[ 37.777087] Buffer I/O error on device mtdblock3, logical block 0
[ 37.783445] uncorrectable error :
[ 37.786715] end_request: I/O error, dev mtdblock3, sector 8
[ 37.792504] Buffer I/O error on device mtdblock3, logical block 1
[ 37.798781] uncorrectable error :
[ 37.802043] end_request: I/O error, dev mtdblock3, sector 16
[ 37.807921] Buffer I/O error on device mtdblock3, logical block 2
[ 37.814189] uncorrectable error :
[ 37.817462] end_request: I/O error, dev mtdblock3, sector 24
[ 37.823338] Buffer I/O error on device mtdblock3, logical block 3
[ 37.829655] end_request: I/O error, dev mtdblock3, sector 0
[ 37.835261] Buffer I/O error on device mtdblock3, logical block 0
[ 37.848169] uncorrectable error :
[ 37.851465] end_request: I/O error, dev mtdblock2, sector 0
[ 37.857261] Buffer I/O error on device mtdblock2, logical block 0
[ 37.863595] uncorrectable error :
[ 37.866859] end_request: I/O error, dev mtdblock2, sector 8
[ 37.872650] Buffer I/O error on device mtdblock2, logical block 1
[ 37.878928] end_request: I/O error, dev mtdblock2, sector 16
[ 37.884615] Buffer I/O error on device mtdblock2, logical block 2
[ 37.890888] uncorrectable error :
[ 37.894151] end_request: I/O error, dev mtdblock2, sector 24
[ 37.900030] Buffer I/O error on device mtdblock2, logical block 3
[ 37.906347] end_request: I/O error, dev mtdblock2, sector 0
[ 37.911952] Buffer I/O error on device mtdblock2, logical block 0
[ 37.924655] uncorrectable error :
[ 37.928028] uncorrectable error : <3>[ 37.931484] end_request: I/O error, dev mtdblock1, sector 0
[ 37.937263] end_request: I/O error, dev mtdblock1, sector 8
[ 37.943019] uncorrectable error :
[ 37.946280] end_request: I/O error, dev mtdblock1, sector 16
[ 37.952307] uncorrectable error :
[ 37.955565] end_request: I/O error, dev mtdblock1, sector 24
[ 37.961633] uncorrectable error :
[ 37.964898] end_request: I/O error, dev mtdblock1, sector 0
[ 37.977269] uncorrectable error :
[ 37.980641] uncorrectable error : <3>[ 37.984089] end_request: I/O error, dev mtdblock0, sector 0
[ 37.989888] uncorrectable error :
[ 37.993151] end_request: I/O error, dev mtdblock0, sector 8
[ 37.999097] end_request: I/O error, dev mtdblock0, sector 16
[ 38.004915] uncorrectable error :
[ 38.008185] end_request: I/O error, dev mtdblock0, sector 24
[ 38.014233] uncorrectable error :
[ 38.017510] end_request: I/O error, dev mtdblock0, sector 0
[ 38.508821] sshd (208): /proc/208/oom_adj is deprecated, please use /proc/208/oom_score_adj instead.
[ 535.838865] kjournald starting. Commit interval 5 seconds
[ 535.839472] EXT3-fs (sda1): using internal journal
[ 535.938834] EXT3-fs (sda1): recovery complete
[ 535.938845] EXT3-fs (sda1): mounted filesystem with writeback data mode
')

I only get into rescue. What is the trick to boot my normal system?
Im running archlinux also on my desktop pc and beeing no linux newbie, but this problem seems to be to big for me ;(
setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: Buffer I/O error on device mtdblock2

Postby sambul13 » Wed Sep 05, 2012 12:20 am

I'd look at erasing your NAND completely, checking & remapping bad blocks if any with special soft (probably NAND type dependent), then possibly reformatting the NAND into partitions, flushing the original Pogo OS image to it (see threads here) and then reinstalling Uboot.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Buffer I/O error on device mtdblock2

Postby WarheadsSE » Wed Sep 05, 2012 1:22 am

Actually, Wiping your NAND entirely, is likely not the solution.

This shouldn't be stopping you from booting entirely however.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Buffer I/O error on device mtdblock2

Postby setti » Wed Sep 05, 2012 5:41 am

$this->bbcode_second_pass_quote('WarheadsSE', 'A')ctually, Wiping your NAND entirely, is likely not the solution.

This shouldn't be stopping you from booting entirely however.

What would you recommend instead?

@sambul13: I dont have any windows installation. So the tools you referenced dont help me much.
setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: Buffer I/O error on device mtdblock2

Postby setti » Wed Sep 05, 2012 7:30 am

fixed it my self.

in uboot i had to enter
$this->bbcode_second_pass_code('', 'setenv arcNumber 3089; saveenv') as it was yet set to 2097.

and i had to remve /boot/uInitrd because with this file existing i did not get into my usb hdd, but only into ubit-v6.

no more bad blocks warning now.

Question which still remeans: Can i ignore uboot warning about not finding uInitrd? Or should i investigate on how to create a working uInitrd?
setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: Buffer I/O error on device mtdblock2

Postby WarheadsSE » Wed Sep 05, 2012 11:36 am

It's not a required item. It is there in case you wish to use it. Ignore them unless you are intending to use a uInitrd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Buffer I/O error on device mtdblock2

Postby sambul13 » Wed Sep 05, 2012 12:50 pm

setti

How do you explain I/O errors disappearing? :?
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Buffer I/O error on device mtdblock2

Postby WarheadsSE » Wed Sep 05, 2012 1:16 pm

Rather easily. The NAND maps are different across the devices.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests