• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 2 [3] 4 5 6
Author Topic: The alternative Debian install method.  (Read 50873 times)
knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #30 on: November 05, 2009, 11:56:34 PM »

If you want to download a pre-compiled Debian Squeeze rootfs.tar.gz then I have uploaded a freshly compiled one here:

http://www.mediafire.com/?nwzlyvmjzlf

Thanks again, this one works.
Now on to the next issue, how to make it multiboot. I read the wiki and understand the principle of making it multiboot. To boot it from the SD-card i use this set of commands,
Code:
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x400000 0x0800000'

But which commands should i give to start from nand?
Logged

alexschomb
Newbie
*

Karma: 0
Posts: 6


View Profile WWW
« Reply #31 on: November 22, 2009, 12:52:17 PM »

I created my own rootfs.tar.gz running your script on my sheevaplug. after installation i figured out having the same problem being unable to login as root. the password nosoup4u is not accepted... there has to be a failure in your script. i try using now your file from mediafire but i'd prefer having a script that does work for me too, so i can build working rootfs.tar.gz in future Wink

thanks for your work!
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #32 on: November 22, 2009, 01:05:15 PM »

It was mentioned it could be down to the system, or shell thats being run on the build system. Without knowing too much about your build environment, it's hard to tell.

I use BASH, and that script works 100% correctly (both on the standard Ubuntu 9,.04 that the plug comes with, and Debian Squeeze)...   If that part of the script fails, it's likely others may be too
Logged

alexschomb
Newbie
*

Karma: 0
Posts: 6


View Profile WWW
« Reply #33 on: November 22, 2009, 02:41:20 PM »

Thanks for your quick reply. I have to confess that I ran the script with the command "sh SCRIPT" (interpreting as dash in Ubuntu) instead of "bash SCRIPT". learned something new, thank you again!
i rebuild the rootfs.tar.gz and flashed again, now it works with "nosoup4u" password! Smiley
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #34 on: November 23, 2009, 04:36:24 PM »

Done some fixes to the script to identify the dash problem and inform the user if they launch the script incorrectly, and a few other tweaks (include ssh server for example).

Just done a build from it, and all seems fine, any problems with the update script, please post.   I'll also upload the rebuild rootfs.tar.gz  (as it will have newer packages than the older one).

Logged

marcus
Jr. Member
**

Karma: 5
Posts: 83


View Profile
« Reply #35 on: November 23, 2009, 04:57:16 PM »

Just seen your post about rebuilding the rootfs.tar.gz. Despite which, I am here to report a success using the downloaded rootfs.tar.gz and the installer 1.0 (ie I didn't test the script, but the procedure certainly works on my hardware).
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #36 on: November 24, 2009, 01:53:44 AM »

The updated prebuilt of Squeeze it here: http://www.mediafire.com/?tiifeiwnyle
Logged

marcus
Jr. Member
**

Karma: 5
Posts: 83


View Profile
« Reply #37 on: November 26, 2009, 05:07:33 AM »

I downloaded the prebuilt squeeze rootfs and used the installer (to install to SD card): worked fine.

I then modified DebianSheeva1-03.sh to refer to lenny instead of squeeze and executed the script on my SD-booting squeeze plug. The rootfs was fine except for /dev/ttyS0, which wasn't created (and I didn't notice until I tried to log in). Double-checked the script, yes, the chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64 line is there. Manually executed chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64 and tar czf ../rootfs.tar.gz * and this time it worked fine.

Tried a second time, by renaming the original debian directory and this time I noticed mknod: `/dev/ttyS0': File exists (and I double checked, it did seem to exist). Tested the new rootfs usiung the installer; same result (can't login using serial):

Code:
INIT: Id "T0" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel

ssh'ed in and mknod -m 660 /dev/ttyS0 c 4 64; now I can log in via serial port.

Third attempt. Go back to previous filesystem; manually executed

Code:
chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64
cd ./debian
tar czf ../rootfs.tar.gz *

Re-run installer, serial login fine now.

Does that make sense? Line 152 in the script chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64 isn't behaving the way we want it to ... for me, at least.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #38 on: November 28, 2009, 05:59:46 AM »

Fixed for the mknod serial console (script 1.4 attached to the first post in this thread).  Also some other tweaks (see readme for details).
Logged

dawsonit
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #39 on: December 02, 2009, 10:40:43 AM »

Tried doing this with Lenny, and encountered the same error with the serial console reported above, so it doesn't seem to be fixed if you want to use lenny instead of sqeeze.
Logged

dawsonit
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #40 on: December 02, 2009, 01:53:06 PM »

Another optimization you could make is to remove all the .deb files from /var/cache/apt/archives/. There were almost 70MB of .deb's in there.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #41 on: December 02, 2009, 05:30:04 PM »

Tried doing this with Lenny, and encountered the same error with the serial console reported above, so it doesn't seem to be fixed if you want to use lenny instead of sqeeze.

Can't seem to reproduce this.  I'm not getting errors on either build.   Just to confirm, you were building on a filesystem that allowed device creation (dev) and exxecution (exec)?

Thanks for the tip about the apt cache, that's taken 40MB out the download size (both about 60MB -70MB).   I'll upload a prebuild lenny and squeeze..
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #42 on: December 03, 2009, 08:34:33 AM »

Another optimization you could make is to remove all the .deb files from /var/cache/apt/archives/. There were almost 70MB of .deb's in there.


Thank for pointing that out.   Updated script and images are uploaded here: 

http://www.mediafire.com/sheeva-with-debian
Logged

hungarianhc
Jr. Member
**

Karma: 2
Posts: 85


View Profile
« Reply #43 on: December 15, 2009, 12:27:54 AM »

Thanks so much for posting these! However, after playing with them for the past 24 hours (using your prebuilt rootfs), I'm bumping into two errors...

The install works flawlessly, but with Lenny, on boot, i always  hangs when starting crond:
Code:
Starting periodic command scheduler: crond.

As for Squeeze, that works... however, I get an odd issue where it doesn't seem to try and mount anything in /etc/fstab upon boot. I wrote about it here. Once again, I appreciate the work you do to make everyone's lives easier.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #44 on: December 15, 2009, 02:38:07 AM »

There is a issue with the speed that the system boots from nand (too fast), and the system is up and ready before your HDD has spun up.

I have this issue, and used the wait4usbdisks tip which works perfectly.

http://plugcomputer.org/plugforum/index.php?topic=485.msg2858#msg2858

I don't think it's distro specific, it seems to affect all Linux distros, including the stock Ubuntu one.  I am tempted to include it in the build process.

As for the Lenny problem, sorry, I don't know, I only have the one plug, running Squeeze, and can't test the Lenny ones.  I have to rely on the fact it's Debian Stable, that it works...
Logged

Pages: 1 2 [3] 4 5 6
Print
Jump to: