• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 [2] 3
Author Topic: SheevaPlug Installer with updated kernel, uboot, distro ?  (Read 12175 times)
pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #15 on: January 12, 2010, 06:57:49 PM »

This could be bug in the sheeva-installer-1.0 code.

@mgillespie,
Please confirm your version of initrd is same as sheeva-install-1.0.

If the initrd is same, then this could be because the 1.0 initrd's rootfs installation script /etc/init.d/rcS is not doing the right thing Shocked

The /etc/init.d/rcS call busybox's applet mdev with argument "-s" multiple times. This argument instruct the code to scan for new device and check kernel events. the problem is in order to do this the sysfs must be mounted in /sys this is not done in the script. I suspect the previous versions of kernel is more forgiving so it does not crash kernel. However this version of kernel is not very happy about the code access system inode without correct setup.

This is just my guess by looking at the code. I have no prove.

Logged

Good Luck Smiley

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #16 on: January 12, 2010, 11:58:45 PM »

The kernel crash can not be related to any user space bug, to debug this one I would use the original kernel image from the installer for the initrd phase and install the new kernel (2.6.32.3) in nand
Use the instructions from http://plugcomputer.org/plugforum/index.php?topic=717.msg6005#msg6005
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #17 on: January 13, 2010, 11:49:35 AM »

It's using the sheevainstaller 1.0 initrd.

I am currently uploaded a tweaked version of the installer than has roosters suggestion implemented, if anyone wants to be a new tester....  Roll Eyes

http://www.mediafire.com/?sharekey=04c9dc1dbf3b7c15ab1eab3e9fa335caff81ba820fb48529
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #18 on: January 14, 2010, 04:38:55 AM »

Hi.

I tried dl'ing your latest version (twice).

Each time I could not untar it, reason:-

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

sorry!

cheers

Patrick
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #19 on: January 14, 2010, 04:46:49 AM »

Either it's a corrupted upload, or I did something silly like compress it as a bzip2 but called it a gzip...

Can you try it with:

tar -xvjf

and

tar -xvzf

It could just be something simple like that.  if not, i'll reupload it later.
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #20 on: January 14, 2010, 05:10:02 AM »

Hi

No the archive is a gz but its busted:-

debsilch:/home/patrick/Desktop# tar -xvzf sheevaplug-installer-v1.01.tar.gz
sheevaplug-installer-v1.01/
sheevaplug-installer-v1.01/HOWTO_BUILD.txt
sheevaplug-installer-v1.01/uboot/
sheevaplug-installer-v1.01/uboot/uboot-env/
sheevaplug-installer-v1.01/uboot/uboot-env/uboot-mmc-custom.txt
sheevaplug-installer-v1.01/uboot/uboot-env/uboot-dflt.txt
sheevaplug-installer-v1.01/uboot/uboot-env/fw_setenv
sheevaplug-installer-v1.01/uboot/uboot-env/fw_setenv.exe
sheevaplug-installer-v1.01/uboot/uboot-env/uboot-nand-custom.txt
sheevaplug-installer-v1.01/uboot/uboot.bin
sheevaplug-installer-v1.01/uboot/openocd/
sheevaplug-installer-v1.01/uboot/openocd/config/
sheevaplug-installer-v1.01/uboot/openocd/config/interface/
sheevaplug-installer-v1.01/uboot/openocd/config/interface/sheevaplug.cfg
sheevaplug-installer-v1.01/uboot/openocd/config/board/
sheevaplug-installer-v1.01/uboot/openocd/config/board/sheevaplug.cfg
sheevaplug-installer-v1.01/uboot/openocd/config/target/
sheevaplug-installer-v1.01/uboot/openocd/config/target/feroceon.cfg
sheevaplug-installer-v1.01/uboot/openocd/openocd.exe
sheevaplug-installer-v1.01/uboot/openocd/openocd
sheevaplug-installer-v1.01/win32/
sheevaplug-installer-v1.01/win32/cygwin1.dll
sheevaplug-installer-v1.01/win32/cygusb0.dll
sheevaplug-installer-v1.01/runme.php
sheevaplug-installer-v1.01/installer/
sheevaplug-installer-v1.01/installer/initrd-uImage
sheevaplug-installer-v1.01/installer/uImage
sheevaplug-installer-v1.01/installer/debian-sheevaplug.sh
sheevaplug-installer-v1.01/installer/README.txt
sheevaplug-installer-v1.01/installer/modules.tar.gz
sheevaplug-installer-v1.01/installer/rootfs.tar.gz

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive

cheers

Patrick
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #21 on: January 14, 2010, 07:37:34 AM »

@mgillespie

Just tried your amended (2) version you pm'd me with

still same result  device full and bad magic number:-

terminal output:-

Quote
debsilch:/home/patrick/sheeva_test_installer/sheevaplug-installer-v1.01# php runme.php nand

 ****   exec(modprobe ftdi_sio vendor=0x9e88 product=0x9e8f)
 ****   Preparing environment variables file ...
reading uboot/uboot-env/uboot-dflt.txt
uboot/uboot-env/fw_setenv baudrate 115200
CRC read error on uboot-env.bin: Success
uboot/uboot-env/fw_setenv loads_echo 0
uboot/uboot-env/fw_setenv ipaddr 10.4.50.165
uboot/uboot-env/fw_setenv serverip 10.4.50.5
uboot/uboot-env/fw_setenv rootpath /mnt/ARM_FS/
uboot/uboot-env/fw_setenv netmask 255.255.255.0
uboot/uboot-env/fw_setenv stdin serial
uboot/uboot-env/fw_setenv stdout serial
uboot/uboot-env/fw_setenv stderr serial
uboot/uboot-env/fw_setenv console console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0\(uboot\)ro,0x1ff00000@0x100000\(root\)
uboot/uboot-env/fw_setenv mainlineLinux no
uboot/uboot-env/fw_setenv CASset min
uboot/uboot-env/fw_setenv enaMonExt no
uboot/uboot-env/fw_setenv enaCpuStream no
uboot/uboot-env/fw_setenv enaWrAllo no
uboot/uboot-env/fw_setenv pexMode RC
uboot/uboot-env/fw_setenv disL2Cache no
uboot/uboot-env/fw_setenv setL2CacheWT yes
uboot/uboot-env/fw_setenv disL2Prefetch yes
uboot/uboot-env/fw_setenv enaICPref yes
uboot/uboot-env/fw_setenv enaDCPref yes
uboot/uboot-env/fw_setenv sata_dma_mode yes
uboot/uboot-env/fw_setenv MALLOC_len 1
uboot/uboot-env/fw_setenv ethprime egiga0
uboot/uboot-env/fw_setenv netbsd_en no
uboot/uboot-env/fw_setenv vxworks_en no
uboot/uboot-env/fw_setenv bootargs_root root=/dev/nfs rw
uboot/uboot-env/fw_setenv bootargs_end :::DB88FXX81:eth0:none
uboot/uboot-env/fw_setenv image_name uImage
uboot/uboot-env/fw_setenv bootcmd tftpboot 0x2000000 \$\(image_name\)\;setenv bootargs \$\(console\) \$\(bootargs_root\) nfsroot=\$\(serverip\):\$\(rootpath\) ip=\$\(ipaddr\):\$\(serverip\)\$\(bootargs_end\) \$\(mvNetConfig\) \$\(mvPhoneConfig\)\;  bootm 0x2000000\;
uboot/uboot-env/fw_setenv standalone fsload 0x2000000 \$\(image_name\)\;setenv bootargs \$\(console\) root=/dev/mtdblock0 rw ip=\$\(ipaddr\):\$\(serverip\)\$\(bootargs_end\) \$\(mvPhoneConfig\)\; bootm 0x2000000\;
uboot/uboot-env/fw_setenv bootdelay 3
uboot/uboot-env/fw_setenv disaMvPnp no
uboot/uboot-env/fw_setenv ethaddr 00:50:43:4e:2a:14
uboot/uboot-env/fw_setenv ethmtu 1500
uboot/uboot-env/fw_setenv mvPhoneConfig mv_phone_config=dev0:fxs,dev1:fxs
uboot/uboot-env/fw_setenv mvNetConfig mv_net_config=\(00:11:88:0f:62:81,0:1:2:3\),mtu=1500
uboot/uboot-env/fw_setenv usb0Mode host
uboot/uboot-env/fw_setenv yuk_ethaddr 00:00:00:EE:51:81
uboot/uboot-env/fw_setenv nandEcc 1bit
uboot/uboot-env/fw_setenv netretry no
uboot/uboot-env/fw_setenv rcvrip 169.254.100.100
uboot/uboot-env/fw_setenv loadaddr 0x02000000
uboot/uboot-env/fw_setenv autoload no
uboot/uboot-env/fw_setenv enaAutoRecovery yes
uboot/uboot-env/fw_setenv ethact egiga0
reading uboot/uboot-env/uboot-nand-custom.txt
uboot/uboot-env/fw_setenv bootargs_root ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs rootdelay=5
uboot/uboot-env/fw_setenv mtdpartitions mtdparts=orion_mtd:0x400000@0x100000\(uImage\),0x1fb00000@0x500000\(rootfs\)
uboot/uboot-env/fw_setenv ethaddr 00:50:43:01:c1:e6
uboot/uboot-env/fw_setenv real_bootcmd setenv bootargs \$\(bootargs_console\) \$\(mtdpartitions\) \$\(bootargs_root\)\; nand read.e 0x00800000 0x00100000 0x00400000\; bootm 0x00800000
uboot/uboot-env/fw_setenv bootargs_console console=ttyS0,115200
uboot/uboot-env/fw_setenv bootcmd run recover1
uboot/uboot-env/fw_setenv recover1 setenv mainlineLinux yes\; setenv arcNumber 2097\; setenv bootcmd run recover2\; saveenv\; reset
uboot/uboot-env/fw_setenv recover2 run recover3\; setenv bootcmd \$\(real_bootcmd\)\; saveenv\; setenv bootargs \$\(bootargs_console\) \$\(mtdpartitions\) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand\; bootm 0x00800000 0x01100000
uboot/uboot-env/fw_setenv recover3 run recover4\; nand erase clean 0x00100000 0x00400000\; nand write.e 0x00800000 0x00100000 0x00400000
uboot/uboot-env/fw_setenv recover4 usb start\; fatload usb 0 0x00800000 uImage\; fatload usb 0 0x01100000 initrd

 ****   Burning uboot and environment variables ... This will take few minutes ...
Open On-Chip Debugger 0.2.0 (2009-09-16-09:13) Release
$URL: http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.2.0/src/openocd.c $
For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
2000 kHz
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
dcc downloads are enabled
Error: couldn't read the requested number of bytes from FT2232 device (19 < 81)
Error: couldn't read from FT2232
Error: number of discovered devices in JTAG chain (0) does not match (enabled) configuration (1), total taps: 1
Error: check the config file and ensure proper JTAG communication (connections, speed, ...)
Error: trying to validate configured JTAG chain anyway...
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
0 0 1 0: 00052078
NAND flash device 'NAND 512MiB 3,3V 8-bit' found
successfully erased blocks 5 to 6 on NAND flash device 'NAND 512MiB 3,3V 8-bit'
wrote file uboot-env.bin to NAND flash 0 up to offset 0x000c0000 in 19.306009s
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
0 0 1 0: 00052078
NAND flash device 'NAND 512MiB 3,3V 8-bit' found
successfully erased blocks 0 to 4 on NAND flash device 'NAND 512MiB 3,3V 8-bit'
wrote file uboot.bin to NAND flash 0 up to offset 0x00074000 in 66.079620s

 ****   U-boot should be up and running now. Open your console ...
debsilch:/home/patrick/sheeva_test_installer/sheevaplug-installer-v1.01#


Putty.log is attached

cheers

Patrick

BTW   The postman hasn't  delivered new box yet, so I can still test for you!

P

* putty.log (33.71 KB - downloaded 141 times.)
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #22 on: January 14, 2010, 07:45:02 AM »

Change the mtdpartitions mtdparts=orion_mtd to mtdpartitions mtdparts=orion_nand in the custom file.
Logged

Good Luck Smiley

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #23 on: January 14, 2010, 08:11:23 AM »

I just check (as I was pretty sure I set it to orion_nand) and it is already orion_nand, however the putty.log shows:

"uboot/uboot-env/fw_setenv console console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0\(uboot\)ro,0x1ff00000@0x100000\(root\)"

So perhaps it's also needs setting somwhere else, or somethings not using the mtdpartitions variable...

EDIT:  Try changing the entry in uboot-dflt.txt also from orion_mtd to orion_nand

I don't know offhand what this file does as part of the install process...  But it's worth a shot...  I don't otherwise see where it picked up orion_mtd from (unless it's an old uboot environet variable or something).
« Last Edit: January 14, 2010, 08:19:57 AM by mgillespie » Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #24 on: January 14, 2010, 08:50:19 AM »

Hi.

Well!

I just looked at uboot-nand-custom.txt

That WAS set to orion_mtd

# NAND flash partitions. If using kernel >= 2.6.30 then replace orion_nand with orion_mtd
mtdpartitions mtdparts=orion_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)

I changed it to orion_nand and did a complete re-install.

This time I got the familiar kernel exception crash.

I had a look at the file uboot-dflt.txt, as you suggested, but I cannot see any orion_xxxx terms at all

here is the file as it was dl'd:-

Quote
baudrate 115200

loads_echo 0

ipaddr 10.4.50.165

serverip 10.4.50.5

rootpath /mnt/ARM_FS/

netmask 255.255.255.0

stdin serial

stdout serial

stderr serial

console console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)

mainlineLinux no

CASset min

enaMonExt no

enaCpuStream no

enaWrAllo no

pexMode RC

disL2Cache no

setL2CacheWT yes

disL2Prefetch yes

enaICPref yes

enaDCPref yes

sata_dma_mode yes

MALLOC_len 1

ethprime egiga0

netbsd_en no

vxworks_en no

bootargs_root root=/dev/nfs rw

bootargs_end :::DB88FXX81:eth0:none

image_name uImage

bootcmd tftpboot 0x2000000 $(image_name);setenv bootargs $(console) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvNetConfig) $(mvPhoneConfig);  bootm 0x2000000;

standalone fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;

bootdelay 3

disaMvPnp no

ethaddr 00:50:43:4e:2a:14

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

enaAutoRecovery yes

ethact egiga0




Here is the crash:-

Quote
UBI: attached mtd1 to ubi0

UBI: MTD device name:            "rootfs"

UBI: MTD device size:            507 MiB

UBI: number of good PEBs:        4056

UBI: number of bad PEBs:         0

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     0

UBI: available PEBs:             4012

UBI: total number of reserved PEBs: 44

UBI: number of PEBs reserved for bad PEB handling: 40

UBI: max/mean erase counter: 22/7

UBI: image sequence number: 0

UBI: background thread "ubi_bgt0d" started, PID 565

UBI device number 0, total 4056 LEBs (523321344 bytes, 499.1 MiB), available 4012 LEBs (517644288 bytes, 493.7 MiB), LEB size 129024 bytes (126.0 KiB)

Unable to handle kernel NULL pointer dereference at virtual address 00000018

pgd = df8a4000

[00000018] *pgd=1fbea031, *pte=00000000, *ppte=00000000

Internal error: Oops: 17 [#1] PREEMPT

last sysfs file: /sys/devices/virtual/mtd/mtd1/dev

Modules linked in:

CPU: 0    Not tainted  (2.6.32.3 #1)

PC is at __mark_inode_dirty+0xbc/0x160

LR is at __mark_inode_dirty+0x64/0x160

pc : [<c00e2d18>]    lr : [<c00e2cc0>]    psr: 60000013

sp : df8b5eb8  ip : df8b5eb8  fp : df8b5ed4

r10: 000df017  r9 : df8b4000  r8 : c002dba4

r7 : 0000000a  r6 : c05be2a0  r5 : df5258e0  r4 : 00000000

r3 : df52597c  r2 : 00000000  r1 : 00000007  r0 : 00000001

Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

Control: 0005397f  Table: 1f8a4000  DAC: 00000015

Process mdev (pid: 566, stack limit = 0xdf8b4270)

Stack: (0xdf8b5eb8 to 0xdf8b6000)

5ea0:                                                       df5258e0 df46a220

5ec0: 00000000 0000000a df8b5efc df8b5ed8 c012da18 c00e2c70 c00cc730 c06a3280

5ee0: df46a220 df46a220 00000000 df527f00 df8b5f24 df8b5f00 c00cd6e4 c012d9c0

5f00: df8b5f24 df8b5f10 c00db3fc df527f00 df5258e0 00000000 df8b5fa4 df8b5f28

5f20: c00cf73c c00cd68c c0a93500 df125b00 df44e200 01afe402 00000004 df82b000

5f40: 00000000 df8b5f50 00000000 00000000 00000000 ffffff9c 00000000 fffffffe

5f60: df8b5fa4 df8b5f70 c00c19c4 c00c0f4c 00000024 df8b5f80 c00c2ad8 000e3188

5f80: 00000008 df82b000 00000005 00000000 000df008 00000000 00000000 df8b5fa8

5fa0: c002da20 c00cf680 00000000 000df008 000df017 bee0d964 00000003 0000005a

5fc0: 00000000 000df008 00000000 0000000a ffffffff 00000000 000df017 00000000

5fe0: 00000013 bee0d8d0 0007020c 4018dd2c 20000010 000df017 f86d3567 b076c817

[<c00e2d18>] (__mark_inode_dirty+0xbc/0x160) from [<c012da18>] (ext2_unlink+0x6c/0x78)

[<c012da18>] (ext2_unlink+0x6c/0x78) from [<c00cd6e4>] (vfs_unlink+0x6c/0xdc)

[<c00cd6e4>] (vfs_unlink+0x6c/0xdc) from [<c00cf73c>] (do_unlinkat+0xcc/0x154)

[<c00cf73c>] (do_unlinkat+0xcc/0x154) from [<c002da20>] (ret_fast_syscall+0x0/0x28)

Code: 1a00001c e5953098 e5936038 e5964068 (e5943018)

---[ end trace cadbef7193283b1b ]---

note: mdev[566] exited with preempt_count 1

BUG: scheduling while atomic: mdev/566/0x40000002

Modules linked in:

[<c0032d30>] (unwind_backtrace+0x0/0xe0) from [<c042bce0>] (schedule+0x70/0x3fc)

[<c042bce0>] (schedule+0x70/0x3fc) from [<c003c430>] (__cond_resched+0x18/0x24)

[<c003c430>] (__cond_resched+0x18/0x24) from [<c042c660>] (_cond_resched+0x34/0x44)

[<c042c660>] (_cond_resched+0x34/0x44) from [<c00ace20>] (unmap_vmas+0x5f0/0x6d4)

[<c00ace20>] (unmap_vmas+0x5f0/0x6d4) from [<c00afb10>] (exit_mmap+0xdc/0x214)

[<c00afb10>] (exit_mmap+0xdc/0x214) from [<c0041cc0>] (mmput+0x40/0x110)

[<c0041cc0>] (mmput+0x40/0x110) from [<c0045fa8>] (exit_mm+0x148/0x158)

[<c0045fa8>] (exit_mm+0x148/0x158) from [<c00475e0>] (do_exit+0x180/0x6c4)

[<c00475e0>] (do_exit+0x180/0x6c4) from [<c0031380>] (die+0x17c/0x1a0)

[<c0031380>] (die+0x17c/0x1a0) from [<c0033d88>] (__do_kernel_fault+0x6c/0x7c)

[<c0033d88>] (__do_kernel_fault+0x6c/0x7c) from [<c042ffac>] (do_page_fault+0x23c/0x258)

[<c042ffac>] (do_page_fault+0x23c/0x258) from [<c002d30c>] (do_DataAbort+0x40/0xa0)

[<c002d30c>] (do_DataAbort+0x40/0xa0) from [<c042e08c>] (__dabt_svc+0x4c/0x60)

Exception stack(0xdf8b5e70 to 0xdf8b5eb8)

5e60:                                     00000001 00000007 00000000 df52597c

5e80: 00000000 df5258e0 c05be2a0 0000000a c002dba4 df8b4000 000df017 df8b5ed4

5ea0: df8b5eb8 df8b5eb8 c00e2cc0 c00e2d18 60000013 ffffffff

[<c042e08c>] (__dabt_svc+0x4c/0x60) from [<c00e2d18>] (__mark_inode_dirty+0xbc/0x160)

[<c00e2d18>] (__mark_inode_dirty+0xbc/0x160) from [<c012da18>] (ext2_unlink+0x6c/0x78)

[<c012da18>] (ext2_unlink+0x6c/0x78) from [<c00cd6e4>] (vfs_unlink+0x6c/0xdc)

[<c00cd6e4>] (vfs_unlink+0x6c/0xdc) from [<c00cf73c>] (do_unlinkat+0xcc/0x154)

[<c00cf73c>] (do_unlinkat+0xcc/0x154) from [<c002da20>] (ret_fast_syscall+0x0/0x28)

BUG: scheduling while atomic: mdev/566/0x40000002

Modules linked in:

[<c0032d30>] (unwind_backtrace+0x0/0xe0) from [<c042bce0>] (schedule+0x70/0x3fc)

[<c042bce0>] (schedule+0x70/0x3fc) from [<c003c430>] (__cond_resched+0x18/0x24)

[<c003c430>] (__cond_resched+0x18/0x24) from [<c042c660>] (_cond_resched+0x34/0x44)

[<c042c660>] (_cond_resched+0x34/0x44) from [<c00460ec>] (put_files_struct+0x84/0xd4)

[<c00460ec>] (put_files_struct+0x84/0xd4) from [<c0047664>] (do_exit+0x204/0x6c4)

[<c0047664>] (do_exit+0x204/0x6c4) from [<c0031380>] (die+0x17c/0x1a0)

[<c0031380>] (die+0x17c/0x1a0) from [<c0033d88>] (__do_kernel_fault+0x6c/0x7c)

[<c0033d88>] (__do_kernel_fault+0x6c/0x7c) from [<c042ffac>] (do_page_fault+0x23c/0x258)

[<c042ffac>] (do_page_fault+0x23c/0x258) from [<c002d30c>] (do_DataAbort+0x40/0xa0)

[<c002d30c>] (do_DataAbort+0x40/0xa0) from [<c042e08c>] (__dabt_svc+0x4c/0x60)

Exception stack(0xdf8b5e70 to 0xdf8b5eb8)

5e60:                                     00000001 00000007 00000000 df52597c

5e80: 00000000 df5258e0 c05be2a0 0000000a c002dba4 df8b4000 000df017 df8b5ed4

5ea0: df8b5eb8 df8b5eb8 c00e2cc0 c00e2d18 60000013 ffffffff

[<c042e08c>] (__dabt_svc+0x4c/0x60) from [<c00e2d18>] (__mark_inode_dirty+0xbc/0x160)

[<c00e2d18>] (__mark_inode_dirty+0xbc/0x160) from [<c012da18>] (ext2_unlink+0x6c/0x78)

[<c012da18>] (ext2_unlink+0x6c/0x78) from [<c00cd6e4>] (vfs_unlink+0x6c/0xdc)

[<c00cd6e4>] (vfs_unlink+0x6c/0xdc) from [<c00cf73c>] (do_unlinkat+0xcc/0x154)

[<c00cf73c>] (do_unlinkat+0xcc/0x154) from [<c002da20>] (ret_fast_syscall+0x0/0x28)

BUG: scheduling while atomic: mdev/566/0x40000002

Modules linked in:

[<c0032d30>] (unwind_backtrace+0x0/0xe0) from [<c042bce0>] (schedule+0x70/0x3fc)

[<c042bce0>] (schedule+0x70/0x3fc) from [<c003c430>] (__cond_resched+0x18/0x24)

[<c003c430>] (__cond_resched+0x18/0x24) from [<c042c660>] (_cond_resched+0x34/0x44)

[<c042c660>] (_cond_resched+0x34/0x44) from [<c00460ec>] (put_files_struct+0x84/0xd4)

[<c00460ec>] (put_files_struct+0x84/0xd4) from [<c0047664>] (do_exit+0x204/0x6c4)

[<c0047664>] (do_exit+0x204/0x6c4) from [<c0031380>] (die+0x17c/0x1a0)

[<c0031380>] (die+0x17c/0x1a0) from [<c0033d88>] (__do_kernel_fault+0x6c/0x7c)

[<c0033d88>] (__do_kernel_fault+0x6c/0x7c) from [<c042ffac>] (do_page_fault+0x23c/0x258)

[<c042ffac>] (do_page_fault+0x23c/0x258) from [<c002d30c>] (do_DataAbort+0x40/0xa0)

[<c002d30c>] (do_DataAbort+0x40/0xa0) from [<c042e08c>] (__dabt_svc+0x4c/0x60)

Exception stack(0xdf8b5e70 to 0xdf8b5eb8)

5e60:                                     00000001 00000007 00000000 df52597c

5e80: 00000000 df5258e0 c05be2a0 0000000a c002dba4 df8b4000 000df017 df8b5ed4

5ea0: df8b5eb8 df8b5eb8 c00e2cc0 c00e2d18 60000013 ffffffff

[<c042e08c>] (__dabt_svc+0x4c/0x60) from [<c00e2d18>] (__mark_inode_dirty+0xbc/0x160)

[<c00e2d18>] (__mark_inode_dirty+0xbc/0x160) from [<c012da18>] (ext2_unlink+0x6c/0x78)

[<c012da18>] (ext2_unlink+0x6c/0x78) from [<c00cd6e4>] (vfs_unlink+0x6c/0xdc)

[<c00cd6e4>] (vfs_unlink+0x6c/0xdc) from [<c00cf73c>] (do_unlinkat+0xcc/0x154)

[<c00cf73c>] (do_unlinkat+0xcc/0x154) from [<c002da20>] (ret_fast_syscall+0x0/0x28)

BUG: scheduling while atomic: mdev/566/0x40000002

Modules linked in:

[<c0032d30>] (unwind_backtrace+0x0/0xe0) from [<c042bce0>] (schedule+0x70/0x3fc)

[<c042bce0>] (schedule+0x70/0x3fc) from [<c003c430>] (__cond_resched+0x18/0x24)

[<c003c430>] (__cond_resched+0x18/0x24) from [<c042c660>] (_cond_resched+0x34/0x44)

[<c042c660>] (_cond_resched+0x34/0x44) from [<c00460ec>] (put_files_struct+0x84/0xd4)

[<c00460ec>] (put_files_struct+0x84/0xd4) from [<c0047664>] (do_exit+0x204/0x6c4)

[<c0047664>] (do_exit+0x204/0x6c4) from [<c0031380>] (die+0x17c/0x1a0)

[<c0031380>] (die+0x17c/0x1a0) from [<c0033d88>] (__do_kernel_fault+0x6c/0x7c)

[<c0033d88>] (__do_kernel_fault+0x6c/0x7c) from [<c042ffac>] (do_page_fault+0x23c/0x258)

[<c042ffac>] (do_page_fault+0x23c/0x258) from [<c002d30c>] (do_DataAbort+0x40/0xa0)

[<c002d30c>] (do_DataAbort+0x40/0xa0) from [<c042e08c>] (__dabt_svc+0x4c/0x60)

Exception stack(0xdf8b5e70 to 0xdf8b5eb8)

5e60:                                     00000001 00000007 00000000 df52597c

5e80: 00000000 df5258e0 c05be2a0 0000000a c002dba4 df8b4000 000df017 df8b5ed4

5ea0: df8b5eb8 df8b5eb8 c00e2cc0 c00e2d18 60000013 ffffffff

[<c042e08c>] (__dabt_svc+0x4c/0x60) from [<c00e2d18>] (__mark_inode_dirty+0xbc/0x160)

[<c00e2d18>] (__mark_inode_dirty+0xbc/0x160) from [<c012da18>] (ext2_unlink+0x6c/0x78)

[<c012da18>] (ext2_unlink+0x6c/0x78) from [<c00cd6e4>] (vfs_unlink+0x6c/0xdc)

[<c00cd6e4>] (vfs_unlink+0x6c/0xdc) from [<c00cf73c>] (do_unlinkat+0xcc/0x154)

[<c00cf73c>] (do_unlinkat+0xcc/0x154) from [<c002da20>] (ret_fast_syscall+0x0/0x28)

BUG: scheduling while atomic: mdev/566/0x40000002

Modules linked in:

[<c0032d30>] (unwind_backtrace+0x0/0xe0) from [<c042bce0>] (schedule+0x70/0x3fc)

[<c042bce0>] (schedule+0x70/0x3fc) from [<c003c430>] (__cond_resched+0x18/0x24)

[<c003c430>] (__cond_resched+0x18/0x24) from [<c042c660>] (_cond_resched+0x34/0x44)

[<c042c660>] (_cond_resched+0x34/0x44) from [<c00460ec>] (put_files_struct+0x84/0xd4)

[<c00460ec>] (put_files_struct+0x84/0xd4) from [<c0047664>] (do_exit+0x204/0x6c4)

[<c0047664>] (do_exit+0x204/0x6c4) from [<c0031380>] (die+0x17c/0x1a0)

[<c0031380>] (die+0x17c/0x1a0) from [<c0033d88>] (__do_kernel_fault+0x6c/0x7c)

[<c0033d88>] (__do_kernel_fault+0x6c/0x7c) from [<c042ffac>] (do_page_fault+0x23c/0x258)

[<c042ffac>] (do_page_fault+0x23c/0x258) from [<c002d30c>] (do_DataAbort+0x40/0xa0)

[<c002d30c>] (do_DataAbort+0x40/0xa0) from [<c042e08c>] (__dabt_svc+0x4c/0x60)

Exception stack(0xdf8b5e70 to 0xdf8b5eb8)

5e60:                                     00000001 00000007 00000000 df52597c

5e80: 00000000 df5258e0 c05be2a0 0000000a c002dba4 df8b4000 000df017 df8b5ed4

5ea0: df8b5eb8 df8b5eb8 c00e2cc0 c00e2d18 60000013 ffffffff

[<c042e08c>] (__dabt_svc+0x4c/0x60) from [<c00e2d18>] (__mark_inode_dirty+0xbc/0x160)

[<c00e2d18>] (__mark_inode_dirty+0xbc/0x160) from [<c012da18>] (ext2_unlink+0x6c/0x78)

[<c012da18>] (ext2_unlink+0x6c/0x78) from [<c00cd6e4>] (vfs_unlink+0x6c/0xdc)

[<c00cd6e4>] (vfs_unlink+0x6c/0xdc) from [<c00cf73c>] (do_unlinkat+0xcc/0x154)

[<c00cf73c>] (do_unlinkat+0xcc/0x154) from [<c002da20>] (ret_fast_syscall+0x0/0x28)

Segmentation fault


cheers

P
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #25 on: January 14, 2010, 09:34:58 AM »

@superpat,

OK, while we are on it, lets give it a try Tongue if you see the 2~3 post before I have idea about this problem, I think may be because this version of kernel is more sensitive to miss-setup. we can try this.

boot into initrd,
Code:
Marvell>> reset
Marvell>> run recover4
Marvell>> setenv bootargs '${bootargs_console} ${mtdpartitions} root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand rdinit=/bin/sh'
Marvell>> bootm0 x00800000 0x01100000

After above, you should be at shell prompt, this where we try my idea Cheesy
Code:
# [ -d /proc ] || mkdir /proc
# [ -d /sys ] || mkdir /sys
# mount -t proc proc /proc
# mount -t sysfs sys /sys
# sh /etc/init.d/rcS
If this work then we can modify the initrd's script to include the two mount statement at the top.

I am at work right now, I am not 100% sure the commands used above, so if something went wrong please post everything including all the command entered so I can see where I made mistake.
Logged

Good Luck Smiley

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #26 on: January 14, 2010, 09:55:21 AM »

"pingtoo

I tried your boot command, ( twice), appeared to "hang" for a minute or so after loading kernel, then suddenly jumped back to uboot with no kernel shell ouput!

Putty log attached

* putty.log (14.24 KB - downloaded 156 times.)
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #27 on: January 14, 2010, 09:58:04 AM »

Hi.

Well!

I just looked at uboot-nand-custom.txt

That WAS set to orion_mtd

# NAND flash partitions. If using kernel >= 2.6.30 then replace orion_nand with orion_mtd
mtdpartitions mtdparts=orion_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)

I changed it to orion_nand and did a complete re-install.

This time I got the familiar kernel exception crash.


I'm REALLY confused now, as I just downloaded the file from the same URL I PM'd you and mine says: (I changed the comment to as it seems that the 2.6.30 comment was misleading).  Are you 100% sure you are not using an old copy?

Quote
# NAND flash partitions. If you are having problems, try replacing orion_nand with orion_mtd
mtdpartitions mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #28 on: January 14, 2010, 10:06:41 AM »

"pingtoo

I tried your boot command, ( twice), appeared to "hang" for a minute or so after loading kernel, then suddenly jumped back to uboot with no kernel shell ouput!

Putty log attached

This is very strange, I can see no wrong in the your log yet the kernel reboot itself indicate something failed Roll Eyes. If you don't mind please append init=/bin/sh at end of the setenv bootagrs ... May be using initrd require different kernel argument.
Logged

Good Luck Smiley

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #29 on: January 14, 2010, 10:36:50 AM »

@mgillespie

crikey! I hope not, but you have got me worried now.

What I have done now  is too delete ALL references to previous instances of the installer, and I am d/l ing your PM'd location version again!

I have reformated  the USB stick, and I will start again from scratch.

I hope I haven't been stupid here and wasted peoples time.

Will keep you posted soonest!

P

@ pingtoo 

I need to sort this version doubt out first before I progress with your latest request, I hope you will be patient!

P


EDIT

Panic Over.... I had used the correct latest version which gave the result I posted above.   I cleared out all the old stuff so there could be NO possibility of confusion and I got the same kernel exception.  The only thing I did wrong was that Gedit had cached an old example of the uboot-nand-custom .txt, instead of displaying the latest one. However the custom config in your latest  tar was already set to *nand as you said

I have attached the putty log as usual

P

* putty.log (119.35 KB - downloaded 119 times.)
« Last Edit: January 14, 2010, 11:26:54 AM by superpat » Logged

Pages: 1 [2] 3
Print
Jump to: