• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 [2]
Author Topic: Correct way to install new Kernel?  (Read 7957 times)
UnaClocker
Full Member
***

Karma: 0
Posts: 131



View Profile WWW
« Reply #15 on: January 02, 2010, 08:04:49 PM »

Hmm.. Found your guide.. Man I wish I had found that sooner.. Looks like I'll pretty much have to start over and redo my install.
Logged

SheevaPlug - 8gb class 4 SDHC primary drive, 4tb 3.5" media drive, Debian Wheezy, nginx, Samba, Shorewall

dellis1972
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #16 on: January 15, 2010, 06:33:58 AM »

Hi I used your guide to compile myself a new kernel (2.6.32.3 ) on the plug. However I want to have the same kernel on my usb stick. So I have put the uImage, vmlinux etc onto the /boot  of my usb stick, installed the modules and rebooted. It starts to load the kernel says it has read N bytes then hangs with no errors.

Anyone got any ideas? I have posted my environment , I added some boot commands to allow me to boot from a usb, mmc or nand depending on what device was inserted. Anyone got any ideas on getting a new kernel to boot from usb?

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
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
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;
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
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=00:50:43:01:6A:9F
recover1=setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset
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
recover3=run recover4; nand erase clean 0x00100000 0x00400000; nand write.e 0x00800000 0x00100000 0x00400000
recover4=usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd
bootargs_root_nand=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootcmd_nand=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root_nand); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
bootargs_root_mmc=root=/dev/mmcblk0p2 rootdelay=5
bootcmd_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000
real_bootcmd=run bootcmd_mmc; run bootcmd_nand
filesize=32D62A
arcNumber=2097
bootargs_console=console=ttyS0,115200
bootargs_root=root=/dev/sda2 rootdelay=10
bootargs_console_usb=ttyS0,115200 root=/dev/sda2 rootdelay=10
bootcmd=run bootcmd_usb1; run bootcmd_mmc; run bootcmd_nand
bootcmd_usb=usb start; ext2load usb 0:1 0x0800000 /uInitrd; ext2load usb 0:1 0x400000 /uImage
bootcmd_usb1=setenv bootargs $(bootargs_console_usb) $(bootargs_root); run bootcmd_usb; bootm 0x400000 0x0800000
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
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: 2523/131068 bytes
Marvell>>
Logged

dellis1972
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #17 on: January 15, 2010, 02:18:53 PM »

After re compiling the kernel again I get this

Code:
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.......................
.
.........................
.........................
.........................
.........................
.........................
.........................
.

4480111 bytes read
.
.........................
.........................
.........................
.........................
.........................
.........................
.........................
........................data abort
pc : [<00624414>]          lr : [<90000003>]
sp : 19aca44c  ip : 005fdf90     fp : e7cad175
r10: 0069133c  r9 : 006cfa20     r8 : 005fffcc
r7 : 74bc8cde  r6 : aa4d49ac     r5 : 433fcad0  r4 : f356bced
r3 : 00688978  r2 : 00000c51     r1 : 000186a0  r0 : 00004791
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32a0000
Resetting CPU ...
Logged

dellis1972
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #18 on: January 17, 2010, 01:47:27 PM »

I fixed this issue. It had to do with loading the uImage. the kernal I had built did not need a uInitrd.
Logged

mhtsaras
Newbie
*

Karma: 0
Posts: 42


View Profile
« Reply #19 on: January 26, 2010, 03:55:26 AM »

Is there a way that I can compile orion v2.6.31.1, from a usb drive, onto the nand?
Or am I going about this the wrong way?

Hello Doose,

Why not try writing your compiled uImage directly into the NAND partition of the sheevaplug? If you already have your compiled uImage, put it in your USB thumbdrive then do a nandwrite.

See below:


root@ubuntu:/mnt# ls
uImage
root@ubuntu:/mnt# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00020000 "uImage"
mtd1: 1fb00000 00020000 "rootfs"
root@ubuntu:/mnt# flash_eraseall /dev/mtd0
Erasing 128 Kibyte @ 3e0000 -- 96 % complete.
root@ubuntu:/mnt# nandwrite -p /dev/mtd0 uImage
...                                                 
root@ubuntu:/mnt#

Just ensure that you are modifying the nand partition for the kernel. After that perform a reboot.
Hope this helps.  Smiley
If I just take the latest precompiled sheeva-2.6.32.6-uImage from http://sheeva.with-linux.com , and put it on a directory or usb mount, I can run the above commands and have the new kernel ready after it finishes, with out the need of sheeva-2.6.32.6-Modules.tar.gz ?'?
If I'm booting of the nand, can I nandwrite the new kernel or I must boot from another source (like mmc or USB) to nandwrite the kernel ? 
Logged

Loattejak
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #20 on: February 04, 2010, 03:10:42 PM »

hi there
this may be a stupid question but what is the correct way to store the baja from week to week. is it ok to rest it on the floor?? i rest it on on box at the moment with the wheels off the floor but i was told this with do the suspension no good as it hanging down....advice needed thanks sean
Logged

Pages: 1 [2]
Print
Jump to: