• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: 2.6.32.6 new release  (Read 2672 times)
cbxbiker61
Global Moderator
Sr. Member
*****

Karma: 38
Posts: 497


View Profile
« on: January 25, 2010, 01:47:14 PM »

2.6.32.6 is now available.

Kernel and modules are available from the following location:

http://sheeva.with-linux.com/sheeva/

Features dmcrypt, IPV6, CIFS, NFS4, EXT3, EXT4, JFS, XFS, FUSE(for ntfs-3g), UBIFS, usb-serial, uvcvideo, iptables, appletalk, bluetooth, v4l and ppp.
Logged

mhtsaras
Newbie
*

Karma: 0
Posts: 43


View Profile
« Reply #1 on: January 29, 2010, 04:31:27 AM »

I installed debian squeeze with the help of the installer 1, with the instruction from this post-->http://plugcomputer.org/plugforum/index.php?topic=878.0
After that I followed the instructions from plugwiki -->http://www.openplug.org/plugwiki/index.php/Install_Prebuilt_Kernels_From_sheeva.with-linux.com and installed kernel 2.6.32.6 with the help of your provided readme-2.6.32.6 only.
Now I can boot from nand with out problems so far.
The next step was to make the plug boot from mmc(sd card).
I followed the instruction from this post-->http://plugcomputer.org/plugforum/index.php?topic=1001.msg6173#msg6173
to multi boot.
in a few words I did the following:
Procedure for partitioning and formatting MMC:
>fdisk /dev/mmcblk0
   press "o"  / create a new partition table
   press "n"  / create a new partition
   press "p"  / it's a primary partition
   press "1"  / partition #1
   press enter / default first cylinder
   press enter / default last cylinder
   press "a"  / set the boot flag
   press "1" / ... for partition #1
   press "w" / save changes
   
>mkfs -t ext2 (or ext3, if you wish) /dev/mmcblk0p1
>mkdir /mnt/sdcard
>mount /dev/mmcblk0p1 /mnt/sdcard
>df

Copy NAND to card (quick and dirty - works better when not copying from active filesystem):

>cp -ax / /mnt/sdcard # takes 13 minutes
>cp -a /dev /mnt/sdcard

I typed some bootargs for nand, sd(mmc) and usb and with the next parameters Tried to mutiboot :
setenv bootcmd 'run bootcmd_usb1; run bootcmd_sd; run bootcmd_nand'
FYI the same procedure to multiboot has worked for me the past few months that I have the plug with Ubuntu 9.04 and the new installer 1 kernel.
Now when I have the sdcard pluged-in it tries to read from sdcard but returns me a bad magic number and based on the above multiboot parameters it falls back to the nand and boots from it.
After taking different steps, I can't make it boot from sd.

From nand boot, the fdisk for /dev/mmcblk0 (sdcard) gives me :
Disk /dev/mmcblk0: 8048 MB, 8048869376 bytes
4 heads, 16 sectors/track, 245632 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk identifier: 0xd2dcad3a

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *           1      245632     7860216   83  Linux


Below is the boot error from Marvel prompt.
Code:
(Re)start USB...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00200000 ...
Bad Magic Number
SDHC found. Card desciption is:
Manufacturer:       0x27, OEM "PH"
Product name:       "SD08G", revision 2.0
Serial number:      2953843753
Manufacturing date: 8/2009
CRC:                0x00, b0 = 0

** Unable to read "/boot/uImage" from mmc 0:1 **
## Booting image at 00800000 ...
Bad Magic Number

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.32.6
   Created:      2010-01-25  20:14:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2821924 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.32.6 (kelly@speedy) (gcc version 4.4.1 (Sourcery G++ Lite er) ) #1 PREEMPT Mon Jan 25 13:14:06 MST 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 rw mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
...
As you can see it tries to boot first from usb and gives an error (i don't care for now cause usb is empty), second it tries to boot from sd card and also gives me an error.
I'm not an expert but as I can see the problem with sd card"Unable to read "/boot/uImage" from mmc 0:1"
So I don't know if the problem is the 2.6.32.6 kernel or some misconfigured bootargs from uboot..
My printenv are below:
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=a0000
e=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)$(bootarg
s_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
bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=00:50:43:01:6A:6A
real_bootcmd=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400
000; bootm 0x00800000
bootargs_console=console=ttyS0,115200
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=/de
v/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
arcNumber=2097
filesize=32D62A
bootargs_sd=console=ttyS0,115200 rw root=/dev/mmcblk0p1 rootdelay=5
bootcmd_sd=setenv bootargs $(bootargs_sd); mmcinit; ext2load mmc 0 0x800000 /boot/uImage; bootm 0x800000
bootargs_nand=console=ttyS0,115200 rw mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
bootcmd_nand=setenv bootargs $(bootargs_nand); nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootargs_usb=console=ttyS0,115200 root=/dev/sda1 ro rootdelay=10 panic=10
bootcmd_usb=usb start; ext2load usb 0:1 0x00200000 /boot/uImage; ext2load usb 0:1 0x01100000 /boot/uInitrd
bootcmd_usb1=setenv bootargs $(bootargs_usb); run bootcmd_usb; bootm 0x00200000 0x01100000
bootcmd=run bootcmd_usb1; run bootcmd_sd; run bootcmd_nand
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: 2684/131068 bytes
Marvell>>
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #2 on: January 29, 2010, 08:07:58 AM »

It is likely the 8GB size partition cause the problem. In u-boot the mmc support can only address first 4GB space. So may be create a small partition at beginning of the SD card for just the kernel and/or initrd/initramfs then a second partition for the rest will help.

Good luck Smiley
Logged

Good Luck Smiley

mhtsaras
Newbie
*

Karma: 0
Posts: 43


View Profile
« Reply #3 on: January 30, 2010, 05:46:13 AM »

First of all the same sd card with 8GB i had for the last 3 months with only one partition with the same uboot "U-Boot 1.1.4 (Jul 19 2009 - 16:03:28) Marvell version: 3.4.19"  kernel 2.6.30.2 and the default ubuntu 9.04 and never had any problem multibooting from nand and mmc (sd card) , and this time I installed debian with new kernel but the same u-boot I can't boot from mmc.
That's why I think the problem is with the new kernel.
Despite all this I followed your advice and used the installer option "sudo php runme.php mmc" and succesfully created 2 partitions on sd card and installed debian with the installer's kernel 2.6.30.2
Code:
debian:~# uname -a
Linux debian 2.6.30.2 #11 PREEMPT Wed Jul 22 19:53:31 MDT 2009 armv5tel GNU/Linux
debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 251M     0  251M   0% /lib/init/rw
udev                   10M  120K  9.9M   2% /dev
tmpfs                 251M  4.0K  251M   1% /dev/shm
rootfs                7.4G  357M  6.7G   5% /
debian:~# fdisk -l

Disk /dev/mmcblk0: 8048 MB, 8048869376 bytes
4 heads, 16 sectors/track, 245632 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk identifier: 0xd2dcad3a

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1               1         123        3928   83  Linux
/dev/mmcblk0p2             124      245632     7856288   83  Linux
debian:~#
After that I downloaded README-2.6.32.6 and succesfully created a new sheeva-2.6.32.6-uImage
Code:
debian:/home#./README-2.6.32.6 --rootkernel
Downloading files
--2010-01-30 12:22:01--  http://sheeva.with-linux.com/sheeva/2.6.32.6/sheeva-2.6.32.6-Modules.tar.gz
Resolving sheeva.with-linux.com... 216.146.103.100
...
...
Saving to: `sheeva-2.6.32.6-uImage.md5'
100%[======================================>] 57          --.-K/s   in 0s
2010-01-30 12:24:14 (1.92 MB/s) - `sheeva-2.6.32.6-uImage.md5' saved [57/57]
Extracting modules
Writing kernel to /boot
****************************************************************
 update your bootcmd to load sheeva-2.6.32.6-uImage
 or use a symlink from /boot/sheeva-2.6.32.6-uImage to /boot/uImage
****************************************************************
debian:/home#
debian:/# ls -l /boot
total 2760
-rw-r--r-- 1 root root 2821988 Jan 30 13:16 sheeva-2.6.32.6-uImage
Then I changed the:
 setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
to:
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /boot/sheeva-2.6.32.6-uImage; bootm 0x00800000'
Cross fingers reset:
Code:
Hit any key to stop autoboot:  0
SDHC found. Card desciption is:
Manufacturer:       0x27, OEM "PH"
Product name:       "SD08G", revision 2.0
Serial number:      2953843753
Manufacturing date: 8/2009
CRC:                0x00, b0 = 0

** Unable to read "/boot/sheeva-2.6.32.6-uImage" from mmc 0:1 **
## Booting image at 00800000 ...
[b]Bad Magic Number[/b]
Marvell>>
changed back the :
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /boot/sheeva-2.6.32.6-uImage; bootm 0x00800000'
to:
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
the plug boots with the old /uImage
Code:
Hit any key to stop autoboot:  0
SDHC found. Card desciption is:
Manufacturer:       0x27, OEM "PH"
Product name:       "SD08G", revision 2.0
Serial number:      2953843753
Manufacturing date: 8/2009
CRC:                0x00, b0 = 0

2620504 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.30.2
   Created:      2009-07-23   1:53:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2620440 Bytes =  2.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.30.2 (kelly@speedy) (gcc version 4.2.1) #11 PREEMPT Wed Jul 22 19:53:31 MDT 2009
...
...
Last login: Sat Jan 30 13:37:48 EET 2010 on ttyS0
Linux debian 2.6.30.2 #11 PREEMPT Wed Jul 22 19:53:31 MDT 2009 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian:~# uname -a
Linux debian 2.6.30.2 #11 PREEMPT Wed Jul 22 19:53:31 MDT 2009 armv5tel GNU/Linux
debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 251M     0  251M   0% /lib/init/rw
udev                   10M  120K  9.9M   2% /dev
tmpfs                 251M  4.0K  251M   1% /dev/shm
rootfs                7.4G  357M  6.7G   5% /
debian:~#
Now I have two uImage, /uImage and /boot/sheeva-2.6.32.6-uImage, and I can only boot from the first and not the second updated one.
WTF?
I'm a total confused linux noob...
 
« Last Edit: January 30, 2010, 05:54:01 AM by mhtsaras » Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #4 on: January 30, 2010, 07:55:36 AM »

This is indication you hit the 4GB limitation in u-boot, you can boot the /uImage is because it landed in the first 4GB address space the second one you can not is because it is beyond first 4GB address. I have a very long thread with superpat in this forum. I have verify this condition.
Logged

Good Luck Smiley

mhtsaras
Newbie
*

Karma: 0
Posts: 43


View Profile
« Reply #5 on: January 30, 2010, 11:41:43 AM »

So is there a way to move or create the new sheeva-2.6.32.6-uImage to the first partition of the sdcard somehow or I must try the new u-boot 3.4.27: u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 with your patch?
I'd better have to move the new sheeva-2.6.32.6-uImage to the first partition because the second solution (updating the u-boot) maybe will bring other problems.
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #6 on: January 30, 2010, 11:59:50 AM »

It is simple, just create a partition less then 4GB, place you kernel in it will work. the mmc code calculate offset from partition boundary.   my code is more or less for debugging you don't need to use it unless you know you need some function it provide.
Logged

Good Luck Smiley

mhtsaras
Newbie
*

Karma: 0
Posts: 43


View Profile
« Reply #7 on: February 02, 2010, 02:53:49 PM »

Finally found a simple solution.
I mounted the first partition of the sd card
Code:
debian:~# mount /dev/mmcblk0p1 /mnt/sdcard
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 251M     0  251M   0% /lib/init/rw
udev                   10M  120K  9.9M   2% /dev
tmpfs                 251M  4.0K  251M   1% /dev/shm
rootfs                7.4G  360M  6.7G   6% /
/dev/mmcblk0p1        3.8M  2.8M  807K  78% /mnt/sdcard
debian:~# ls -l /mnt/sdcard
total 2780
drwx------ 2 root root   12288 Jan 30 00:37 lost+found
-rw-r--r-- 1 root root 2821988 Jan 30 13:16 uImage
It was only 4 MB big and the kernel uImage inside.
My new /boot/sheeva-2.6.32.6-uImage was as you said in the other partition
So I did :
Copy/backup the old uImage as  last-working-2.6.30.2uImage
debian:~# cp -ax /mnt/sdcard/uImage /home/last-working-2.6.30.2uImage
delete the old uImage from the 1st partition
debian:~# rm -fr /mnt/sdcard/uImage
copy my new sheeva-2.6.32.6-uImage to the 1st partition as uImage
debian:~# cp -ax /boot/sheeva-2.6.32.6-uImage /mnt/sdcard/uImage
Restart
debian:~# shutdown -r now
And ...voila!
Code:
Last login: Sat Jan 30 23:33:51 EET 2010 on ttyS0
Linux debian 2.6.32.6 #1 PREEMPT Mon Jan 25 13:14:06 MST 2010 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 251M     0  251M   0% /lib/init/rw
udev                   10M  120K  9.9M   2% /dev
tmpfs                 251M  4.0K  251M   1% /dev/shm
rootfs                7.4G  360M  6.7G   6% /
debian:~# mount /dev/mmcblk0p1 /mnt/sdcard
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 251M     0  251M   0% /lib/init/rw
udev                   10M  120K  9.9M   2% /dev
tmpfs                 251M  4.0K  251M   1% /dev/shm
rootfs                7.4G  360M  6.7G   6% /
/dev/mmcblk0p1        3.8M  2.8M  807K  78% /mnt/sdcard
debian:~# ls -l /mnt/sdcard
total 2780
drwx------ 2 root root   12288 Jan 30 00:37 lost+found
-rw-r--r-- 1 root root 2821988 Jan 30 13:16 uImage
I don't know if I used the correct options on the copy process (correct me if i'm wrong) but the copied new uImage has at least the same permissions as the old one and some days now it's working fine.
Thank you for the info pingtoo...
PS.Some dates might be wrong because I didn't took all the snapshots the exact time I was doing the above and they are there just to explain the process.
« Last Edit: February 02, 2010, 03:09:24 PM by mhtsaras » Logged

Pages: [1]
Print
Jump to: