• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 2 [3]
31  Linux Stuff / Kernel / Re: 2.6.32.6 new release 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>>
32  Linux Stuff / Kernel / Re: Correct way to install new Kernel? 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 ? 
33  General Category / General Discussion / Re: Installer Error on: January 19, 2010, 03:33:03 PM
All my problems and many error messages like yours, disappeared when I compiled on my host ubuntu pc,the latest openocd.
   
34  Hardware and U-Boot firmware / U-Boot stuff / Re: new uboot version 3.4.25 on: January 10, 2010, 04:24:01 AM
It would be nice if the moderators/administrators of the forum and wiki, take all the above mentioned updated images of kernel, uboot, distribution and update the installer's files and configuration with all the new stuff and after testing it with the help of the members that provided them, post them online
And award the contributors/anonymous members with a generous discount on the next plugcomputer model.
Today I decided to do all the dirty work by my self and debug the all process with the help of the forum members through thiw post --> http://plugcomputer.org/plugforum/index.php?topic=1188.0 , but after reading the above post, I changed my mind and decided to wait for a bit, because this year I didn't received any present from santa ... yet!  Roll Eyes
35  General Category / General Discussion / Re: SheevaPlug Installer with updated kernel, uboot, distro ? on: January 10, 2010, 04:23:00 AM
It would be nice if the moderators/administrators of the forum and wiki, take all the above mentioned updated images of kernel, uboot, distribution and update the installer's files and configuration with all the new stuff and after testing it with the help of the members that provided them, post them online
And award the contributors/anonymous members with a generous discount on the next plugcomputer model.
Today I decided to do all the dirty work by my self and debug the all process with the help of the forum members, but after reading this post -->
http://plugcomputer.org/plugforum/index.php?topic=1134.msg7362#msg7362
I changed my mind and decided to wait for a bit, because this year I didn't received any present from santa ... yet!  Roll Eyes
36  General Category / General Discussion / SheevaPlug Installer with updated kernel, uboot, distro ? on: January 08, 2010, 08:14:14 AM
I have my plug for some weeks up and running with the installer 1  provided kernel 2.6.30.2 , ubuntu, and uboot, and I can multiboot from nand, sd card or usb.
Now I want to install debian squeeze, the latest kernel and the latest uboot, and considering that for the installer 1 you need from the readme:
5.  Copy the following to the USB stick root directory:
      a. Root file-system (packed into rootfs.tar.gz)
      b. Kernel (named uImage)
      c. Kernel modules (packed into modules.tar.gz)
      d. Init ramdisk (uImage.initrd)
    If you do not have all, you can download from:
      a. http://plugcomputer.org/index.php/us/resources/downloads (distro, kernel(LSP), uboot)
      b. http://plugcomputer.org/plugwiki/index.php/Main_Page     (distrio,uboot)
      c. http://sheeva.with-linux.com/sheeva                      (mainline kernel+modules)


can i just replace the above files with the updated ones provided by some developers/members of the forum ?
rootfs.tar.gz   from  http://www.mediafire.com/sheeva-with-debian provided by mgillespie this post]http://plugcomputer.org/plugforum/index.php?topic=878.0]this post
kernel  from http://sheeva.with-linux.com/sheeva/  provided by cbxbiker61
and uboot from rooster  http://plugcomputer.org/plugforum/index.php?topic=1134.0 (see attached file uboot.bin )
and then follow the installer's steps to reflash my plug with all the new stuff?
and if that can be done what is the proper way to do this all together and not one by one?
37  Hardware and U-Boot firmware / Hardware / Re: Choosing a USB powered hard drive for the Sheeva on: January 03, 2010, 01:36:29 PM
I also bought the Western Digital My Passport Essential  500 GB 2.5", WDBAAA5000ABK-EES, and all I can say is that it works smoothly with the plug.
I pushed it a little further and test it with the following running simultaneously for a couple of days:
samba
irssi (downloading two or more big files with dcc and chatting )
rtorrent (downloading and seeding about 7 big torrents)
watch from an ubuntu pc connected to the same lan with the plug an xvid movie streamed from the usb disk.
Another windows vista pc connected to the same lan was reading and writing files to the disk.
The disk worked fine without a glitch and the plug was showing 4-20% cpu load with average 6-12%.
It also goes to standby mode after some 5-10 minutes of inactivity, and the plug can wake it up easily in 1-2 seconds.
The most of the cpu load was under the ntfs-3g, the driver for linux to see ntfs drives.
Ntfs-3g is power hungry but the big disadvantage is that it reaches terrible speeds from other computers on the same lan:
download to usb disk 14 MB/sec
upload                        7  MB/sec

With another fat32 usbdisk connected to the plug, I had speeds ~ 23 MB/sec down. 16 MB/sec upload.
(with 2 windows pcs I have speeds ranging around 25-40 MB/sec, transfering files between them.)
I guess that formating the disk with ext3 or ext4 I will have better speeds.
What file system is recommended to format the usb disk of the plug to have better speeds considering that I boot from the SD card which is formated with ext2 ?'??
38  Hardware and U-Boot firmware / Hardware / Re: Choosing a USB powered hard drive for the Sheeva on: December 29, 2009, 07:15:32 AM
I'm glad that it works with the Sheevaplug, but the strange thing is that in this page from Western Digital Knowledge Base -->
http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1731
says that "Drive Maximum Power Draw (milliamps) 1000 Ma " and the Sheevaplug goes to usb output max=780 mA
It seems like if you stress the disk, the sheevaplug's usb power, won't have enough juice to feed the drive so maybe sometime you will have a problem.
Considering that the max output of the plug is 780 mA, I was going to buy a WD PASSPORT (not MY PASSPORT) with 320GB (WD3200U017, WDXMSA2500, WDXMSB2500, WDXMSC2500, WDXMSE2500) which needs "Drive Maximum Power Draw (milliamps) 650 Ma" as it says in that page --> http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1555
But after your last post saying that My Passport Essential 500GB, works with the sheevaplug I don't know what to do.
Maybe some experts here in the forum that have more knowledge about the sheevaplug hardware capabilities will give us their opinion.

The stupid hard disk companies say that the drives are usb compatible but the usb specification for power --> http://en.wikipedia.org/wiki/Universal_Serial_Bus#Power   says that "A unit load is defined as 100 mA in USB 2.0, and was raised to 150 mA in USB 3.0. A maximum of 5 unit loads (500 mA) can be drawn from a port in USB 2.0, which was raised to 6 (900 mA) in USB 3.0.is under 500 mA "
So making usb devices that draw so much (650 or 1000 mA) that the provided usb power from a pc or a plug can not reach, are not usb compatible in my book...
For those who want to see the specifications of Western Digital passport portables and their disks click this link --> http://support.wdc.com/product/kb.asp?level1=2&lang=en

39  General Category / General Discussion / Re: Benefits/Downsides to moving to SDHC based booting. on: December 28, 2009, 05:58:12 AM
Here are some tips to reduce wear
Tips for running Linux on a flash device
http://www.cyrius.com/debian/nslu2/linux-on-flash.html
40  Hardware and U-Boot firmware / Hardware / Re: Choosing a USB powered hard drive for the Sheeva on: December 28, 2009, 05:26:52 AM
...
Thanks. I've actually just ordered a Western Digital My Passport Essential 500GB! Will let you guys know how I get on with it. Probably best if we add results of all these hard drives in the external hard drive section of the Plug Computer WIKI.

So monkeyhybrid what are the news?
The Western Digital My Passport Essential 500GB can work with only the usb power of the plug? or it needs an extra usb hub?
41  Hardware and U-Boot firmware / Hardware / NAND device: ......Bad eraseblock on: December 27, 2009, 02:21:16 PM
Hi.
After I setup/upgrade my plug with the new installer and make it boot from SD, when I run "dmesg" I get always somewhere in the middle of the print out :

....
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3553 at 0x00001bc20000
Bad eraseblock 3554 at 0x00001bc40000
Bad eraseblock 3555 at 0x00001bc60000
Bad eraseblock 3556 at 0x00001bc80000
Bad eraseblock 3557 at 0x00001bca0000
Bad eraseblock 3558 at 0x00001bcc0000
Bad eraseblock 3559 at 0x00001bce0000
Bad eraseblock 3560 at 0x00001bd00000
Bad eraseblock 3561 at 0x00001bd20000
Bad eraseblock 3562 at 0x00001bd40000
Bad eraseblock 3563 at 0x00001bd60000
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
...


I always get those 11 Bad eraseblocks
Should I worry that some day I won't be able to boot from NAND?
I look to other dmesg posts and I see that most of the people have 2-3, so considering that  I have 11 should I return the plug to theretailer?
Can I do something to fix those errors?
Thanx in advance
42  General Category / General Discussion / apt-get dist-upgrade on: December 19, 2009, 05:07:58 AM
Hi
Linux noob here but a happy one because after 10 days of linux (Ubuntu 9.04) on my desktop and 3 days of eye bleeding of the readme - wiki - forum reading and many errors on the flash process with the installer 1.0, I finally managed to finish the process only after building on my desktop the openocd and moved it in the intstaller folder replacing the one that was there and then "run php runme.php nand".http://www.openplug.org/plugwiki/index.php/SheevaPlug_Installer / Troubleshooting
FYI:I have cpu amd-64 - Ubuntu 9.04 32bit
Next step is to make it boot from sd card.
I will make a thread later when i have some time and tell you all the details and what I've done to help someone that has same problems like me.
Now I have done  apt-get update and apt-get upgrade to my sheevaplug.

My noob question is this: is it safe to run apt-get dist-upgrade ?
I'm asking this because I am reading that the new Ubuntu 9.10 has no support for arm5 cpu (plugcomputer's cpu).
Or the apt-get dist-upgrade has nothing to do with upgrading the plugcomputer from Ubuntu 9.04 to 910?
43  Linux Stuff / Linux distributions / Re: [IMPORTANT] Ubuntu 9.10 Karmic Koala *WON'T* work on the sheevaplug on: December 10, 2009, 10:16:47 AM
Hi.
Because the sheevaplug works with Ubuntu 9.04, is it better to have the same version of Ubuntu on my desktop pc (to play with sheevaplug like make it boot from SD memory card or from a usb hard drive or transfer apps from my desktop pc , etc) or it will work fine if I have Ubuntu 9.10 on my desktop pc ?
Pages: 1 2 [3]