PDA

View Full Version : Installation Guide for Sheevaplug as a SBS for Dummies



Pages : 1 [2]

truehl
2010-03-02, 23:32
As you know I'm working on a new and much more easier version of the Wiki. The new Wiki will be available in:

* english
* german
* french
*italian

I'm still searching for someone who like to translate it in spanish and netherlands!

anttmaki
2010-03-07, 03:39
What to do now? Some error occured while following the wiki...


Marvell>> version

U-Boot 1.1.4 (Dec 27 2009 - 22:03:21) Marvell version: 3.4.27 - pingtoo patch.01
Marvell>> setenv mainlineLinux yes
Marvell>> setenv bootargs_console console=ttyS0,115200
Marvell>> setenv bootcmd_mmc 'mmcinit;mmcinit; ext2load mmc 0 0x0800000 /uInitrd
; ext2load mmc 0 0x400000 /uImage'
Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc;
bootm 0x400000 0x0800000'
Marvell>> run bootcmd
SDHC found. Card desciption is:
Manufacturer: 0x1b, OEM "SM"
Product name: "00000", revision 1.0
Serial number: 2985467298
Manufacturing date: 8/2009
CRC: 0x00, b0 = 0
SDHC found. Card desciption is:
Manufacturer: 0x1b, OEM "SM"
Product name: "00000", revision 1.0
Serial number: 2985467298
Manufacturing date: 8/2009
CRC: 0x00, b0 = 0

5084461 bytes read

1426888 bytes read
## Booting image at 00400000 ...
Image Name: Debian kernel
Created: 2010-02-03 19:36:13 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1426824 Bytes = 1.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
Image Name: Debian ramdisk
Created: 2010-02-03 19:36:14 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5084397 Bytes = 4.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000020f).

Available machine support:

ID (hex) NAME
00000690 Marvell DB-88F6281-BP Development Board
00000691 Marvell RD-88F6192-NAS Development Board
00000692 Marvell RD-88F6281 Reference Board
00000831 Marvell SheevaPlug Reference Board
0000085b QNAP TS-119/TS-219
000009c6 QNAP TS-41x
00000915 Marvell OpenRD Base Board
00000939 Marvell OpenRD Client Board

Please check your kernel config and/or bootloader.

truehl
2010-03-07, 03:57
Hi,

maybe you think there is nothing going on with the project?! At time I'm solving some problems and now I think im ready to go the next step. Problems solved are:

1. Got the SheevaPlug-Installer to work properly and build my own images with an alternative install methode. That's the same methode as NewIT uses and so we are fully compatible with the NewIT-Plugs.

2. Fixed the problem of smaller SD-Cards than the one I've made the images from. So you can now use smaller sized cards than the one I used for building the images.

3. The new Wiki will be modular so you will be leaded through it exactly the way you need for your Plug and you spezical environment.

So there is a lot of work in the background and I hope to be ready the next 7 days.

Please visit my blog: http://squeezeplug.de

Greetings Thomas

truehl
2010-03-07, 05:01
What to do now? Some error occured while following the wiki...


Anttmaki: As I see, you use u-boot 3.4.27. Maybe thats the problem! Could you try 3.4.23? You get it from my blog: http://squeezeplug.de

Please report!

Greetings,
Thomas

anttmaki
2010-03-07, 09:07
Anttmaki: As I see, you use u-boot 3.4.27. Maybe thats the problem! Could you try 3.4.23? You get it from my blog: http://squeezeplug.de

Please report!

Greetings,
Thomas

Same problem with 3.4.23:


** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Nov 4 2009 - 12:58:36) Marvell version: 3.4.23

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM CS[1] base 0x10000000 size 256MB
DRAM Total size 512MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
Marvell>> setenv mainlineLinux yes
Marvell>> setenv arcNumber 2097
Marvell>> setenv bootargs_console console=ttyS0,115200
Marvell>> setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2lo
ad mmc 0 0x400000 /uImage'
Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc;
bootm 0x400000 0x0800000'
Marvell>> run bootcmd
SDHC found. Card desciption is:
Manufacturer: 0x1b, OEM "SM"
Product name: "00000", revision 1.0
Serial number: 2985467298
Manufacturing date: 8/2009
CRC: 0x00, b0 = 0

5084461 bytes read

1426888 bytes read
## Booting image at 00400000 ...
Image Name: Debian kernel
Created: 2010-02-03 19:36:13 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1426824 Bytes = 1.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
Image Name: Debian ramdisk
Created: 2010-02-03 19:36:14 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5084397 Bytes = 4.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000020f).

Available machine support:

ID (hex) NAME
00000690 Marvell DB-88F6281-BP Development Board
00000691 Marvell RD-88F6192-NAS Development Board
00000692 Marvell RD-88F6281 Reference Board
00000831 Marvell SheevaPlug Reference Board
0000085b QNAP TS-119/TS-219
000009c6 QNAP TS-41x
00000915 Marvell OpenRD Base Board
00000939 Marvell OpenRD Client Board

Please check your kernel config and/or bootloader.

truehl
2010-03-07, 11:10
Same problem with 3.4.23:
Anttmaki: where did you buy your plug, which version is it? Are you able to boot from NAND?

Greetings, Thomas

anttmaki
2010-03-07, 11:33
Anttmaki: where did you buy your plug, which version is it? Are you able to boot from NAND?

Greetings, Thomas

Bought it from NewIT (this one) (http://www.newit.co.uk/shop/proddetail.php?prod=SheevaPlug).

Changed the env's back to factory settings and booted the plug:


USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux telephony interface: v1.00
Marvell Telephony Driver:

Warning Tdm is Powered Off
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1 98 MB/s
raid6: int32x2 114 MB/s
raid6: int32x4 122 MB/s
raid6: int32x8 110 MB/s
raid6: using algorithm int32x4 (122 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
arm4regs : 1072.000 MB/sec
8regs : 755.200 MB/sec
32regs : 900.000 MB/sec
raid5: using function: arm4regs (1072.000 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mvsdmmc: irq =28 start f1090000
mvsdmmc: no IRQ detect
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 200
7 UTC).
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
Empty flash at 0x087dd338 ends at 0x087dd800
Empty flash at 0x16ad58e0 ends at 0x16ad6000
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 104K
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address 0002
mmcblk0: mmc0:0002 00000 3997696KiB
mmcblk0: p1 p2 p3
* Setting preliminary keymap... [ OK ]
* Setting the system clock
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ OK ]
* Loading hardware drivers... [ OK ]
* Setting the system clock
* Loading kernel modules...
* Loading manual drivers... [ OK ]
* Setting kernel variables (/etc/sysctl.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-network-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)...
error: "vm.mmap_min_addr" is an unknown key
[fail]
* Setting kernel variables (/etc/sysctl.d/10-tcp-timestamps-workaround.conf)...
[ OK ]
* Activating swap... [ OK ]
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or direct
ory
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or direct
ory
* Starting early crypto disks... [ OK ]
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or direct
ory
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or direct
ory
* Starting remaining crypto disks... [ OK ]
* Checking file systems...
fsck 1.41.3 (12-Oct-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
* Configuring network interfaces... [ OK ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon...
Ubuntu jaunty (development branch) debian ttyS0

debian login: [ OK ]

* Starting kernel log daemon... [ OK ]

* Starting OpenBSD Secure Shell server sshd [ OK ]

* Starting periodic command scheduler crond [ OK ]
f
at: exports duplicate symbol fat_add_entries (owned by kernel)
insmod: error inserting '/boot/fat.ko': -1 Invalid module format

Ubuntu jaunty (development branch) debian ttyS0

debian login:

TeraTerm doesnt show more, sorry. :/

Getting pretty much desperate here. :) Hopefully you have some tricks left!

truehl
2010-03-07, 12:43
Bought it from NewIT (this one) (http://www.newit.co.uk/shop/proddetail.php?prod=SheevaPlug).

Changed the env's back to factory settings and booted the plug:



TeraTerm doesnt show more, sorry. :/

Getting pretty much desperate here. :) Hopefully you have some tricks left!

Anttmaki: The NewIT link does not work. Is it the basic plug? Or a multi-boot option? Did you try to set the u-boot environment variables to the default for your plug? You will find them at the NewIT forum (if the site works again).

anttmaki
2010-03-07, 13:17
Anttmaki: The NewIT link does not work. Is it the basic plug? Or a multi-boot option? Did you try to set the u-boot environment variables to the default for your plug? You will find them at the NewIT forum (if the site works again).

Oh the site must be down or something... I got the basic plug, the cheap dev kit - I was supposed to buy the multiboot version but missclicked the wrong version :D I got the env var's from your u-boot matrix, surely those are the same as the ones in the forums, right?

Got any ideas what to do now?

truehl
2010-03-07, 14:10
Oh the site must be down or something... I got the basic plug, the cheap dev kit - I was supposed to buy the multiboot version but missclicked the wrong version :D I got the env var's from your u-boot matrix, surely those are the same as the ones in the forums, right?

Got any ideas what to do now?

In the forum from NewIT there is a post descriebes howto setup a Basic-Plug as a "manual" Dual-Boot system. You should try this settings when the site is working again. Other possibility would be to try the multi-boot variables, but with that you can't boot from NAND but booting from SD-Card may work!

anttmaki
2010-03-07, 14:15
In the forum from NewIT there is a post descriebes howto setup a Basic-Plug as a "manual" Dual-Boot system. You should try this settings when the site is working again. Other possibility would be to try the multi-boot variables, but with that you can't boot from NAND but booting from SD-Card may work!

Ok, I'll try to find that post when the site is up again. I would appreciate it very much if you could post a link to that thread, just in case I dont find it myself. :)

Thanks and good night. :)

truehl
2010-03-07, 14:23
Oh the site must be down or something... I got the basic plug, the cheap dev kit - I was supposed to buy the multiboot version but missclicked the wrong version :D I got the env var's from your u-boot matrix, surely those are the same as the ones in the forums, right?

Got any ideas what to do now?

Oh, the NewIT-side is up again please try this: http://www.newit.co.uk/forum/index.php/topic,136.0.html

anttmaki
2010-03-07, 14:45
Oh, the NewIT-side is up again please try this: http://www.newit.co.uk/forum/index.php/topic,136.0.html

Ok, so if I understood correctly, I should try the environment variables that are described after "sorted environment variables, showing console as it ought to be", right? And then try to boot with my SD card.

All testing will be done tomorrow tho, need to get some shut-eye now. :)

anttmaki
2010-03-07, 14:49
Btw, I can use the commands from your u-boot matrix xls-file, right?


setenv arcNumber 2097
setenv autoload no
setenv baudrate 115200
setenv bootargs_console console=ttyS0,115200
setenv bootargs_end :::DB88FXX81:eth0:none
setenv bootargs_root root=/dev/mmcblk0p2 rootdelay=5
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
setenv bootdelay 3
setenv CASset min
setenv console console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x 100000(root)
setenv disaMvPnp no
setenv disL2Cache no
setenv disL2Prefetch yes
setenv enaAutoRecovery yes
setenv enaCpuStream no
setenv enaDCPref yes
setenv enaICPref yes
setenv enaMonExt no
setenv enaWrAllo no
setenv ethact egiga0
setenv ethaddr 00:50:43:01:xx:xx
setenv ethmtu 1500
setenv ethprime egiga0
setenv filesize 32D62A
setenv image_name uImage
setenv ipaddr 10.4.50.165
setenv loadaddr 0x02000000
setenv loads_echo 0
setenv mainlineLinux yes
setenv MALLOC_len 1
setenv mvNetConfig mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
setenv mvPhoneConfig mv_phone_config=dev0:fxs,dev1:fxs
setenv nandEcc 1bit
setenv nandEnvBase a0000
setenv netbsd_en no
setenv netmask 255.255.255.0
setenv netretry no
setenv pcieTune no
setenv pexMode RC
setenv rcvrip 169.254.100.100
setenv real_bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
setenv recover1 'setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset'
setenv recover2 'run recover3; setenv bootcmd $(real_bootcmd); saveenv; setenv bootargs $(bootargs_console) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=mmc; bootm 0x00800000 0x01100000'
setenv recover3 'usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd'
setenv rootpath /mnt/ARM_FS/
setenv sata_dma_mode yes
setenv serverip 10.4.50.5
setenv setL2CacheWT yes
setenv standalone 'fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;'
setenv stderr serial
setenv stdin serial
setenv stdout serial
setenv usb0Mode host
setenv vxworks_en no
setenv yuk_ethaddr 00:00:00:EE:51:81

truehl
2010-03-08, 00:48
Btw, I can use the commands from your u-boot matrix xls-file, right?[[/code]
I Hope so !!!

Please inform me!!!

truehl
2010-03-08, 01:17
Btw, I can use the commands from your u-boot matrix xls-file, right?[/code]

Please look at Post #241, maybe thats the solution!

anttmaki
2010-03-08, 02:54
Please look at Post #241, maybe thats the solution!

I will try with the SD-boot env var's before doing that. Im a newbie with linux and going through stage 1 might get bit tricky for me... But all this later on today, Im still at work. ;)

truehl
2010-03-08, 03:22
I will try with the SD-boot env var's before doing that. Im a newbie with linux and going through stage 1 might get bit tricky for me... But all this later on today, Im still at work. ;)
Yes, fine. Please inform me, because I think it's important to get it work for people like you with a "Basic" Plug. Using the SD-Boot env's should work on every Plug I think! If not, we should discuss this with the guys from NewIT. So please keep me informed!

Greetings, Thomas

anttmaki
2010-03-08, 09:54
Yes, fine. Please inform me, because I think it's important to get it work for people like you with a "Basic" Plug. Using the SD-Boot env's should work on every Plug I think! If not, we should discuss this with the guys from NewIT. So please keep me informed!

Greetings, Thomas

Hello. I changed the env var's to the SD-boot version. Did saveenv and resetted. The I ran the commands you have written in the wiki. Booting got to this point:


[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 256MB 256MB = 512MB total
[ 0.000000] Memory: 515200KB available (3504K code, 578K data, 120K init, 0K
highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N
odes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] Console: colour dummy device 80x30
[ 0.000124] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[ 0.240088] Security Framework initialized
[ 0.240108] SELinux: Disabled at boot.
[ 0.240134] Mount-cache hash table entries: 512
[ 0.240428] Initializing cgroup subsys ns
[ 0.240443] Initializing cgroup subsys cpuacct
[ 0.240453] Initializing cgroup subsys devices
[ 0.240463] Initializing cgroup subsys freezer
[ 0.240470] Initializing cgroup subsys net_cls
[ 0.240513] CPU: Testing write buffer coherency: ok
[ 0.241211] devtmpfs: initialized
[ 0.242856] regulator: core version 0.5
[ 0.243059] NET: Registered protocol family 16
[ 0.243562] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 0.243574] Feroceon L2: Enabling L2
[ 0.243606] Feroceon L2: Cache support initialised.
[ 0.245621] bio: create slab <bio-0> at 0
[ 0.245884] vgaarb: loaded
[ 0.246328] Switching to clocksource orion_clocksource
[ 0.249967] NET: Registered protocol family 2
[ 0.250260] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.251005] TCP established hash table entries: 16384 (order: 5, 131072 bytes
)
[ 0.251357] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.251536] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.251545] TCP reno registered
[ 0.251693] NET: Registered protocol family 1
[ 0.251931] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.252158] audit: initializing netlink socket (disabled)
[ 0.252191] type=2000 audit(0.243:1): initialized
[ 0.258679] VFS: Disk quotas dquot_6.5.2
[ 0.258940] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.259031] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.259659] msgmni has been set to 1006
[ 0.261229] alg: No test for stdrng (krng)
[ 0.261344] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2
53)
[ 0.261356] io scheduler noop registered
[ 0.261364] io scheduler anticipatory registered
[ 0.261371] io scheduler deadline registered
[ 0.261559] io scheduler cfq registered (default)
[ 0.267464] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.267900] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 0.582925] console [ttyS0] enabled
[ 0.586979] NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 5
12MiB 3,3V 8-bit)
[ 0.595638] Scanning device for bad blocks
[ 0.635422] Bad eraseblock 1219 at 0x000009860000
[ 0.660198] Bad eraseblock 1905 at 0x00000ee20000
[ 0.709913] Bad eraseblock 3445 at 0x00001aea0000
[ 0.733629] Creating 3 MTD partitions on "orion_nand":
[ 0.738811] 0x000000000000-0x000000100000 : "u-boot"
[ 0.744349] 0x000000100000-0x000000500000 : "uImage"
[ 0.749834] 0x000000500000-0x000020000000 : "root"
[ 0.756030] mice: PS/2 mouse device common for all mice
[ 0.761646] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 0.767599] i2c /dev entries driver
[ 0.771270] cpuidle: using governor ladder
[ 0.775497] cpuidle: using governor menu
[ 0.779542] Registered led device: plug:green:health
[ 0.784574] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 0.790992] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 0.836388] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 0.876387] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 0.916386] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 0.956385] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 0.963049] TCP cubic registered
[ 0.966296] NET: Registered protocol family 17
[ 0.971097] registered taskstats version 1
[ 0.975824] rtc-mv rtc-mv: setting system clock to 2000-02-21 10:46:34 UTC (9
51129994)
[ 0.983827] Waiting 5sec before mounting root device...
[ 5.996445] List of all partitions:
[ 5.999956] 1f00 1024 mtdblock0 (driver?)
[ 6.004949] 1f01 4096 mtdblock1 (driver?)
[ 6.009964] 1f02 519168 mtdblock2 (driver?)
[ 6.014956] No filesystem could mount root, tried:
[ 6.019878] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[ 6.028207] [<c002d0b8>] (unwind_backtrace+0x0/0xdc) from [<c02b3f20>] (panic
+0x34/0x128)
[ 6.036447] [<c02b3f20>] (panic+0x34/0x128) from [<c0008fa4>] (mount_block_ro
ot+0x25c/0x2b4)
[ 6.044934] [<c0008fa4>] (mount_block_root+0x25c/0x2b4) from [<c0009194>] (pr
epare_namespace+0x12c/0x198)
[ 6.054569] [<c0009194>] (prepare_namespace+0x12c/0x198) from [<c00085e0>] (k
ernel_init+0xf0/0x12c)
[ 6.063679] [<c00085e0>] (kernel_init+0xf0/0x12c) from [<c0027e7c>] (kernel_t
hread_exit+0x0/0x8)

anttmaki
2010-03-08, 10:00
Resetted the plug, interrupted auto boot and ran your commands again, this time I did saveenv before resetting. Got to the login point but some errors there are... What shall I do now?


Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 23.799406] kjournald starting. Commit interval 5 seconds
[ 23.804981] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd[ 24.382747] udev: starting versi
on 150
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Activating swap...[ 24.978910] Adding 248996k swap on /dev/mmcblk0p2. Priorit
y:-1 extents:1 across:248996k SS
done.
Checking root file system...fsck from util-linux-ng 2.16.2
e2fsck 1.41.9 (22-Aug-2009)
system: clean, 46254/100464 files, 206256/401625 blocks
done.
[ 25.130733] EXT3 FS on mmcblk0p3, internal journal
Cleaning up ifupdown....
Loading kernel modules...[ 25.265160] loop: module loaded
done.
Checking file systems...fsck from util-linux-ng 2.16.2
e2fsck 1.41.9 (22-Aug-2009)
Superblock last mount time (Sat Feb 6 20:35:49 2010,
now = Mon Feb 21 10:56:54 2000) is in the future.
Fix? yes

Superblock last write time (Sat Feb 6 20:51:56 2010,
now = Mon Feb 21 10:56:54 2000) is in the future.
Fix? yes

boot: clean, 20/64256 files, 26915/128488 blocks
done.
Setting up networking....
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...done.
Setting kernel variables (/etc/sysctl.conf)...Unknown HZ value! (93) Assume 100.
done.
Setting kernel variables (/etc/sysctl.d/bindv6only.conf)...Unknown HZ value! (93
) Assume 100.
error: "net.ipv6.bindv6only" is an unknown key
failed.
Starting portmap daemon....
Starting NFS common utilities: statd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Starting portmap daemon...Already running..
Starting NFS common utilities: statd.
Starting enhanced syslogd: rsyslogd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
Starting MySQL database server: mysqld .[ 28.627432] eth0: link up, 100 Mb/s,
full duplex, flow control disabled
. ..
Checking for corrupt, not cleanly closed and upgrade needing tables..
Starting OpenBSD Secure Shell server: sshd[ 32.353263] NET: Registered protoco
l family 10
[ 32.359199] lo: Disabled Privacy Extensions
.
Starting MTA: exim4.
ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system poss
ibly broken ... failed!
Making sure that Squeezebox Server is not running first: No squeezeboxserve foun
d running; none killed.
Starting Squeezebox Server.

Debian GNU/Linux squeeze/sid sheeva01 ttyS0

sheeva01 login:
Debian GNU/Linux squeeze/sid sheeva01 ttyS0

sheeva01 login:

truehl
2010-03-08, 10:26
Resetted the plug, interrupted auto boot and ran your commands again, this time I did saveenv before resetting. Got to the login point but some errors there are... What shall I do now?
Anttmaki: That looks very good! What errors do you mean? One is from IPV6, ignore. The other is from the mail-server, ignore (I have a fix for it, but it's not important.

Greetings, Thomas

anttmaki
2010-03-08, 11:55
Anttmaki: That looks very good! What errors do you mean? One is from IPV6, ignore. The other is from the mail-server, ignore (I have a fix for it, but it's not important.

Greetings, Thomas

Oh well then all are good. :) Actually Ive been listening music from my SB3 for a while now. Few annoying things Ive noticed: my USB HDD doesnt seem to spin down, the clock in my Squeezebox is incorrect (Does it get from the server? When I use mysqueezebox.com connection its correct.) and I wasnt able to use the samba connection (this might be due to the lack of knowledge :D ).

Million thanks to you Thomas!

truehl
2010-03-08, 12:28
Oh well then all are good. :) Actually Ive been listening music from my SB3 for a while now. Few annoying things Ive noticed: my USB HDD doesnt seem to spin down, the clock in my Squeezebox is incorrect (Does it get from the server? When I use mysqueezebox.com connection its correct.) and I wasnt able to use the samba connection (this might be due to the lack of knowledge :D ).

Million thanks to you Thomas!

Anttmaki: To fix the one error do the following from a console: apt-get remove exim4 exim4-base exim4-config exim4-daemon-light. The spinning down depends on the usb drive you use, some does it, others not. Set the clock of you Plug by webmin, see the wiki. Samba is a bit tricky try to use winscp (http://winscp.net/eng/docs/lang:de) It works very well out of the box.

Could you please tell me, which environment variables you now use? Did you use the script?

Greetings,
Thomas

anttmaki
2010-03-08, 13:47
Anttmaki: To fix the one error do the following from a console: apt-get remove exim4 exim4-base exim4-config exim4-daemon-light. The spinning down depends on the usb drive you use, some does it, others not. Set the clock of you Plug by webmin, see the wiki. Samba is a bit tricky try to use winscp (http://winscp.net/eng/docs/lang:de) It works very well out of the box.

Could you please tell me, which environment variables you now use? Did you use the script?

Greetings,
Thomas

Yeah, seems like the Buffalo's HD-HXU3 doesnt spin down with SheevaPlug, only with Windows - I think.

Already used WinSCP, when the Samba didnt work. WinSCP works fine.

I'll try to fix the time from Webmin.

I used the SD-boot variables from your u-boot matrix.


setenv arcNumber 2097
setenv autoload no
setenv baudrate 115200
setenv bootargs_console console=ttyS0,115200
setenv bootargs_end :::DB88FXX81:eth0:none
setenv bootargs_root root=/dev/mmcblk0p2 rootdelay=5
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
setenv bootdelay 3
setenv CASset min
setenv console console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x 100000(root)
setenv disaMvPnp no
setenv disL2Cache no
setenv disL2Prefetch yes
setenv enaAutoRecovery yes
setenv enaCpuStream no
setenv enaDCPref yes
setenv enaICPref yes
setenv enaMonExt no
setenv enaWrAllo no
setenv ethact egiga0
setenv ethaddr 00:50:43:01:49:01
setenv ethmtu 1500
setenv ethprime egiga0
setenv filesize 32D62A
setenv image_name uImage
setenv ipaddr 10.4.50.165
setenv loadaddr 0x02000000
setenv loads_echo 0
setenv mainlineLinux yes
setenv MALLOC_len 1
setenv mvNetConfig mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
setenv mvPhoneConfig mv_phone_config=dev0:fxs,dev1:fxs
setenv nandEcc 1bit
setenv nandEnvBase a0000
setenv netbsd_en no
setenv netmask 255.255.255.0
setenv netretry no
setenv pcieTune no
setenv pexMode RC
setenv rcvrip 169.254.100.100
setenv real_bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000'
setenv recover1 'setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset'
setenv recover2 'run recover3; setenv bootcmd $(real_bootcmd); saveenv; setenv bootargs $(bootargs_console) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=mmc; bootm 0x00800000 0x01100000'
setenv recover3 'usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd'
setenv rootpath /mnt/ARM_FS/
setenv sata_dma_mode yes
setenv serverip 10.4.50.5
setenv setL2CacheWT yes
setenv standalone 'fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;'
setenv stderr serial
setenv stdin serial
setenv stdout serial
setenv usb0Mode host
setenv vxworks_en no
setenv yuk_ethaddr 00:00:00:EE:51:81


One line caused an error:


Marvell>> setenv recover2 'run recover3; setenv bootcmd $(real_bootcmd); saveenv
; setenv bootargs $(bootargs_console) root=/dev/ram0 rw ramdisk=0x01100000,8M in
stall_type=mmc; bootm 0x00800000 0x01100000'
** Too many args (max. 16) **


Then I followed your wiki:


setenv arcNumber 2097
setenv bootargs_console console=ttyS0,115200
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x400000 0x0800000'
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage'
setenv mainlineLinux yes


Then I did saveenv and reset.

edit: Read the manual of the USB HDD and found out that it is hotpluggable, so I can plug it off if I like. Will it cause any problems? Would be much better if it would spin down like with Windows...

edit2: Seems like Im not able to get a serial connection to my plug anymore... Trying to figure it out tomorrow...

truehl
2010-03-09, 02:58
Yeah, seems like the Buffalo's HD-HXU3 doesnt spin down with SheevaPlug, only with Windows - I think. Please ask this question in the NewIT or in the Plugcomputer Forum.


One line caused an error:

Marvell>> setenv recover2 'run recover3; setenv bootcmd $(real_bootcmd); saveenv
; setenv bootargs $(bootargs_console) root=/dev/ram0 rw ramdisk=0x01100000,8M in
stall_type=mmc; bootm 0x00800000 0x01100000'
** Too many args (max. 16) **
Thats no problem, you dont need it!


Seems like Im not able to get a serial connection to my plug anymore... Trying to figure it out tomorrow... Please try again, I've never see that before. It has nothin to do with you installation I think. Check the setting from your terminal and the cable to your plug.

jakobmagnusson
2010-03-11, 14:14
Hi, I'm back :)

Having sent my plug back to NewIT, they fixed the fault "There was a NAND fault on your plug and this most likely have caused some corruption to the OS or the files within." I think they provided an excellent service.

I got it back and now booting from SD as it should, following the wiki.

Great! I'm not having much more time tonight but will continue Friday evening. One small question: When doing the "Network setup" what does the "#" mean, is it the same as "REM" i.e. that line is "disabled"?

If I'm going to use DHCP, do I need to do anything??

My settings (unchanged) looks like as attached below.

Regards,
Jakob

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface
auto lo
iface lo inet loopback
#
# The primary network interface
allow-hotplug eth0
#
# Your manual settings starts here:
# for DHCP use:
iface eth0 inet dhcp
#
# for static IP use something like this (depends on your network setup):
# iface eth0 inet static
# address 192.168.2.102
# netmask 255.255.255.0
# network 192.168.2.0

truehl
2010-03-12, 01:09
When doing the "Network setup" what does the "#" mean, is it the same as "REM" i.e. that line is "disabled"? Yes!

If I'm going to use DHCP, do I need to do anything??
No!
Fine that you are back Jakob!
Greetings Thomas,

piscicelli
2010-03-12, 07:27
Truehl,

I own a Sheevaplug, which I bought from NewIT and came with their multi-boot SD setup. The unit has been working fine. I downloaded the current stage3 image and copied it to an SD card. I then tried to boot the plug from this SD card without tinkering with the u-boot (which is v. 3.4.23), as I understand that your latest images are ready to work with NewIT multi-boot Sheevaplugs.

The boot failed however. I copy below the relevant output. Can you please help? The SD card is an A-Data 8gb Class 6 card which I already used successfully with the plug.

Many thanks.

Carlo

"[ 1.073910] Waiting 5sec before mounting root device...
[ 6.086442] List of all partitions:
[ 6.089951] 1f00 1024 mtdblock0 (driver?)
[ 6.094944] 1f01 4096 mtdblock1 (driver?)
[ 6.099959] 1f02 519168 mtdblock2 (driver?)
[ 6.104950] No filesystem could mount root, tried:
[ 6.109873] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[ 6.118211] [<c002d0b8>] (unwind_backtrace+0x0/0xdc) from [<c02b3f20>] (panic
+0x34/0x128)
[ 6.126451] [<c02b3f20>] (panic+0x34/0x128) from [<c0008fa4>] (mount_block_ro
ot+0x25c/0x2b4)
[ 6.134939] [<c0008fa4>] (mount_block_root+0x25c/0x2b4) from [<c0009194>] (pr
epare_namespace+0x12c/0x198)
[ 6.144568] [<c0009194>] (prepare_namespace+0x12c/0x198) from [<c00085e0>] (k
ernel_init+0xf0/0x12c)
[ 6.153671] [<c00085e0>] (kernel_init+0xf0/0x12c) from [<c0027e7c>] (kernel_t
hread_exit+0x0/0x8)

truehl
2010-03-12, 12:24
Carlo:
I'm right now finishing a brand new version! This one runs wthout any changes to the plug! (Multi-Boot). Are you able to go back to the original u-boot environment? If yes, I'll give you the new version for testing!

Greetings Thomas

piscicelli
2010-03-12, 13:08
Sure, I have not tinkered with u-boot yet.

truehl
2010-03-12, 13:14
so you don't change anything with u-boot?

jakobmagnusson
2010-03-13, 12:51
Hi,
Just wanted to report that things have progressing well and I'm currently scanning 34652 songs (so far 3500 have been scanned in 27 minutes, is it a bit slow?).

EDIT: It seems to speed up now 7000 songs in 40 minutes...
EDIT2: 12000 songs in 55 minutes, faster and faster....
EDIT3: Scanning all 34652 songs in 2 hours. Continuing with album art etc.

I must say I'm very greatful for your work with wiki, images and not least your support truehl, really excellent!

I'll try to contribute back with some proposals for small improvements here and there, from a newbie perspective, I tried to keep notes.

Regards,
Jakob

steveh
2010-03-13, 15:52
Just like to thank Truehl for the excellent guide to setting up Squeezebox server on the Sheevaplug I have no knowledge of Linux but managed to get a working server.

NewIT multiboot Sheeva plug,Debian Squeeze, sbs 7.4.3,Samba,Webmin, Usb HDD-ntfs partition 5000 songs.

jakobmagnusson
2010-03-14, 10:22
Hi,
How do I make the plug start automatically i.e. boot from the SD card (= "run bootcmd")?


Ii seems as if SBS starts automatically after booting from SD card(?)

another detail: how do I change password? Can I have nothing as password?

Thanks,
Jakob

truehl
2010-03-14, 11:33
Hi,
How do I make the plug start automatically i.e. boot from the SD card (= "run bootcmd")?
It depends on your plug version, which one down you own now?


Ii seems as if SBS starts automatically after booting from SD card(?) Yes and you don't have to be logged in!


another detail: how do I change password? Can I have nothing as password? typ "passwd" and set new Password. Blank will not work I think.

Greetings, Thomas

jakobmagnusson
2010-03-14, 11:40
Hi,
I got it back as a "multi boot". (Nice of NewIT to upgraee it while anuhow flashing it...)
Regards,
Jakob

truehl
2010-03-14, 11:56
Hi,
I got it back as a "multi boot". (Nice of NewIT to upgraee it while anuhow flashing it...)
Regards,
Jakob

Jakob: Then please wait!!! I've got something for you!!! Do you like to be my beta tester?

jakobmagnusson
2010-03-14, 12:14
Hi,
If I can contribute something back to you I'm glad to do so...

Could yo describe what it would take?

(I managed to get my system fully operational now, do I need to revert it somehow??)

/Jakob

truehl
2010-03-14, 12:18
Jakob: I've just finish a new image. This one runs on the newit multi-boot option without change of u-boot. But you have to "burn" a new card! The installation is quite easy and done by script. But you have to setup SBS to work with your music. So if like like, tell me! If not it's o.k.!

Greetings,
Thomas

jakobmagnusson
2010-03-14, 12:24
Sure, I can give it a try, I have a spare SD card. It might take a few days to complete, I have a little time here and there...

Set up SBS, you mean rescan etc?

Please give instruction how I should proceed.

/Jakob

truehl
2010-03-14, 12:45
send you a PM!

truehl
2010-03-15, 03:21
Hi folks,

I've almost finished the new Wiki and the new images. Now we will do some tests and if everythings works well, I'll present to you the new SqueezePlug "family" very soon. I've added a lot of very cool features to get it as easy as possible for you. Thanks to Alex who support me a lot!

The main new features are:

- The SqueezePlug Main Image is fully compatible with the NewIT Multi-Boot Plugs so you don't have to change anything to the Plug, it runs out of the box.
- You now can use scripts for configuring SqueezePlug, it's very easy to setup the network and filesharing.
- You can update your SqueezeBox-Server very easy in only one step with an update script.
- If you are not sure, a SheevaPlug will be good enough as your SqueezeBox-Server, you can download a virtual SqueezePlug, setup exactly the same way as a Hardware Plug. So you even are able to test, wheter you have enough knowledge to get it all to work! And you will see that you don't need any knowledge.

Please be patient for a few more days!!!

Greetings, Thomas

jakobmagnusson
2010-03-15, 06:39
Hi,
What if I connect a USB hub to the sheeva plug and connect 2 or more harddisks to it? Will Sheevaplug detect hem with the commands described in the wiki?

Regards,
Jakob

truehl
2010-03-15, 07:00
Hi,
What if I connect a USB hub to the sheeva plug and connect 2 or more harddisks to it? Will Sheevaplug detect hem with the commands described in the wiki?

Regards,
Jakob
Hi Jakob: You will need an entry in the /etc/fstab for each drive! The script only sets one entry. You have to make the other by hand, as described in the wiki. Please keep out of the power you need for the drives. If the drive don't need a power supply a don't know how much power the sheevaplug will provide?! But I don't think that it will be a good idea to connect more than one drive!

Greetings,
Thomas

piscicelli
2010-03-16, 02:26
I downloaded the Main R1 image and it worked flawlessly on my multi-boot Sheevaplug from NewIT.

Thank you very much and congratulations truehl!

Carlo

jakobmagnusson
2010-03-17, 15:11
Hi!
I've now implmented "SqueezePlug Main R1" on my multi boot sheevaplug.
- It runs ok (doing the scanning right now)
- Very good wiki and scripts etc. very simple to follow

Big thanks truehl for your efforts. And for your support and helpfullness, really appreciated.

Regards,
Jakob

raven22
2010-03-18, 12:39
@ truehl:

I realize this is not a plugforum, but i like to make my plug multiboot, like the newit ones. I guess he is using the sheevapluginstaller 1.0 to first write the NAND and thereafter uses the installer to write ubuntu 9.04 to the SD-card.
This is the easy part, now the difficult one. Which bootcommands are needed to create a multiboot system? You sort of have to combine the bootcommands of both the nand and mmc version. Did you try this?

Edit: typing this question made me realize how to do this. I downloaded your bootcmd list and created the missing bootcmds, great!

GS_Schimpf
2010-03-18, 15:38
You could also check the newit forums, they have all commands for the different scenarios listed there.

truehl
2010-03-22, 14:32
This thread is closed, please visit:

http://forums.slimdevices.com/showthread.php?t=76466

Greeting,
Thomas