Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo on a floppy
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sun Oct 22, 2006 7:19 pm    Post subject: gentoo on a floppy Reply with quote

is it possible to put gentoo in a foppy with:
->cdrom support with all old proprietary busses
->a console
->vfat and ide support
->pc-card (optional)
->usb 2.0 pc-card support(optional)
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sun Oct 22, 2006 7:21 pm    Post subject: Re: gentoo on a floppy Reply with quote

new_to_non_X86 wrote:
is it possible to put gentoo in a foppy with:
No.
new_to_non_X86 wrote:
->cdrom support with all old proprietary busses
->a console
->vfat and ide support
->pc-card (optional)
->usb 2.0 pc-card support(optional)
Perhaps it's possible to put a kernel based on the Gentoo patchset on a floppy, but not the distribution and not even a minimal part of it.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Oct 23, 2006 11:43 am    Post subject: Re: gentoo on a floppy Reply with quote

moocha wrote:
new_to_non_X86 wrote:
is it possible to put gentoo in a foppy with:
No.
new_to_non_X86 wrote:
->cdrom support with all old proprietary busses
->a console
->vfat and ide support
->pc-card (optional)
->usb 2.0 pc-card support(optional)
Perhaps it's possible to put a kernel based on the Gentoo patchset on a floppy, but not the distribution and not even a minimal part of it.

i mean a kernel with uclibc and busybox not much more
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Oct 23, 2006 11:59 am    Post subject: Reply with quote

http://www.linuxlinks.com/Distributions/Floppy/
Gentoo is not geared towards floppies.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Oct 23, 2006 3:59 pm    Post subject: Reply with quote

how can i put grub on a floppy?
by the way i don't think the others distribs have the drivers i want
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Oct 23, 2006 4:11 pm    Post subject: Reply with quote

new_to_non_X86 wrote:
how can i put grub on a floppy?
The info pages on GRUB have a section "3.1 Creating a GRUB boot floppy"
Code:
On a UNIX-like operating system, that is done with the following
commands:

     # cd /usr/lib/grub/i386-pc
     # dd if=stage1 of=/dev/fd0 bs=512 count=1
     1+0 records in
     1+0 records out
     # dd if=stage2 of=/dev/fd0 bs=512 seek=1
     153+1 records in
     153+1 records out
     #

_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Oct 23, 2006 4:13 pm    Post subject: Reply with quote

thanks a lot but i thoat there was a command for this
in debian there is(a friend of my lug showed me this)
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Oct 23, 2006 5:15 pm    Post subject: Reply with quote

There's "grub-install" but there are warnings about its use
Quote:
*Caution:* This procedure is definitely less safe, because there are several ways in which your computer can become unbootable. For example, most operating systems don't tell GRUB how to map BIOS drives to OS devices correctly--GRUB merely "guesses" the mapping. This will succeed in most cases, but not always. Therefore, GRUB provides you with a map file called the "device map", which you must fix if it is wrong.

_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Oct 23, 2006 6:18 pm    Post subject: Reply with quote

i made it with ubuntu and a blank floppy(easyer)
now i have a problem with my external hdd that isn't reconised
what do i need in order to have my external hdd
i think that usb is ok scsi may be the problem

roughly
grub on a floppy->change the floppy for the floppy with the kernel->boot the kernel that will boot on the gentoo that is on an external hdd
(it's for installing linux on a very old computer)
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Oct 23, 2006 7:54 pm    Post subject: Reply with quote

i found the problem...it load the usb hdd AFTER searching the rootfs...
=>i need a ramdisk...in squashfs
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Tue Oct 24, 2006 3:47 pm    Post subject: Reply with quote

Code:
# ROOT="/home/embedded" USE="make-symlinks minimal -nls" emerge -av uclibc busybox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/uclibc-0.9.28 to /home/embedded/ USE="minimal -build -debug -hardened -iconv -ipv6 -nls -pregen -savedconfig -uclibc-compat -userlocales -wordexp" 0 kB
[ebuild   R   ] sys-apps/busybox-1.2.1 to /home/embedded/ USE="make-symlinks -debug -netboot -savedconfig -static" 0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]   

this is 5.5 MB uncompressed
compressed this does 1.4MB in tar.bz2 and 1.5MB in squashfs
how do i put this on a 1.35MB floppy?
is there a way to decrase the space used by uclibc and busybox?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Oct 24, 2006 4:08 pm    Post subject: Reply with quote

Try removing any and all non-essential files. Look around $ROOT/usr/share (especially $ROOT/usr/share/doc). Also make sure to compile them with -Os instead of -O2 and potentially drop even -fomit-frame-pointer since it causes very small size increases too sometimes.
However, I *did* warn you that Gentoo is not suitable for such tasks.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Tue Oct 24, 2006 4:35 pm    Post subject: Reply with quote

what is the saveconfig option on busybox?
i have compiled it staticaly(that mean without the dependency of glibc) and i have now:
1.8 MB staticaly
872 k in squashfs
L:ess than in tar.bz2 that is 1.3MB

how do i boot on a loop file that is in squashfs?

do i dd if= of= the floppy?
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Tue Oct 24, 2006 5:01 pm    Post subject: Reply with quote

i have dd if= of= my squashfs image to the floppy disc and now it says:
Warning: unablke to open an initial console.

there is no /bin/bash in busybox compiled in static mode mabe it's that
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Oct 24, 2006 5:04 pm    Post subject: Reply with quote

If you need a small shell, try app-shells/ash.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Tue Oct 24, 2006 5:18 pm    Post subject: Reply with quote

Code:
Calculating dependencies... done!
[ebuild  N    ] dev-util/yacc-1.9.1-r2  63 kB
[ebuild  N    ] sys-devel/pmake-1.98  282 kB
[ebuild  N    ] dev-util/yacc-1.9.1-r2 to /home/embedded3/ 0 kB
[ebuild  N    ] sys-apps/sed-4.1.5 to /home/embedded3/ USE="static -nls" 780 kB
[ebuild  N    ] sys-libs/timezone-data-2006g to /home/embedded3/ 331 kB
[ebuild  N    ] sys-libs/glibc-2.4-r3 to /home/embedded3/ USE="nptl -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -nls -nptlonly -profile (-selinux)" 15,756 kB
[ebuild  N    ] sys-devel/pmake-1.98 to /home/embedded3/ 0 kB
[ebuild  N    ] app-shells/ash-1.6 to /home/embedded3/ USE="static" 926 kB

ash depend on glibc
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Oct 24, 2006 5:23 pm    Post subject: Reply with quote

new_to_non_X86 wrote:
Code:
Calculating dependencies... done!
[ebuild  N    ] dev-util/yacc-1.9.1-r2  63 kB
[ebuild  N    ] sys-devel/pmake-1.98  282 kB
[ebuild  N    ] dev-util/yacc-1.9.1-r2 to /home/embedded3/ 0 kB
[ebuild  N    ] sys-apps/sed-4.1.5 to /home/embedded3/ USE="static -nls" 780 kB
[ebuild  N    ] sys-libs/timezone-data-2006g to /home/embedded3/ 331 kB
[ebuild  N    ] sys-libs/glibc-2.4-r3 to /home/embedded3/ USE="nptl -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -nls -nptlonly -profile (-selinux)" 15,756 kB
[ebuild  N    ] sys-devel/pmake-1.98 to /home/embedded3/ 0 kB
[ebuild  N    ] app-shells/ash-1.6 to /home/embedded3/ USE="static" 926 kB

ash depend on glibc
I apologize, brain fart on my end. What I meant was app-shells/sash.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Tue Oct 24, 2006 6:18 pm    Post subject: Reply with quote

mkdir /dev
cd /dev
# mknod console c 5 1
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Oct 24, 2006 6:26 pm    Post subject: Reply with quote

D'oh...
You should also create the null and zero devices, as well as perhaps random and urandom, via
Code:
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mknod /dev/random c 1 8
mknod /dev/urandom c 1 9

_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Tue Oct 24, 2006 6:55 pm    Post subject: Reply with quote

Have a look at http://gentoo-wiki.com/Embedded_Gentoo and http://gentoo-wiki.com/TinyGentoo
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Thu Oct 26, 2006 7:20 am    Post subject: Reply with quote

wynn wrote:
new_to_non_X86 wrote:
how can i put grub on a floppy?
The info pages on GRUB have a section "3.1 Creating a GRUB boot floppy"
Code:
On a UNIX-like operating system, that is done with the following
commands:

     # cd /usr/lib/grub/i386-pc
     # dd if=stage1 of=/dev/fd0 bs=512 count=1
     1+0 records in
     1+0 records out
     # dd if=stage2 of=/dev/fd0 bs=512 seek=1
     153+1 records in
     153+1 records out
     #


There's an even easier way:
Code:
# grub
grub> root (fd0)
grub> setup (fd0)
grub> quit


Or alternatively, I have an EXT2 floppy image with Grub loaded here: http://dev.gentoo.org/~redhatter/misc/grub-0.96-r2.img.gz
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu Oct 26, 2006 8:56 am    Post subject: Reply with quote

there´s a tool called byld that might interest you. It´s been dead for years now but it worked the last time i tried. Donnie playied with it some time ago.

cheers
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Oct 28, 2006 8:44 am    Post subject: Reply with quote

i have a mount problem:
Code:
mount /dev/sda1 /mnt/sda1
mount:mounting /dev/sda1 on /mnt/sda1 failled:
no such file or directory


Code:
mnt # ls -l
total 0
drwxr-xr-x  2 root root 48 Oct 24 22:08 cdrom
drwxr-xr-x  2 root root 48 Oct 24 22:08 floppy
drwxr-xr-x  2 root root 48 Oct 24 22:08 sda1
drwxr-xr-x  2 root root 48 Oct 24 22:08 sda2
drwxr-xr-x  2 root root 48 Oct 24 22:08 sda3
drwxr-xr-x  2 root root 48 Oct 24 22:08 sda4
drwxr-xr-x  2 root root 48 Oct 24 22:08 sda5
drwxr-xr-x  2 root root 48 Oct 24 22:08 tempfs


Code:
# ls -l
total 0
crw-r--r--  1 root root 5, 1 Oct 24 21:20 console
brw-r--r--  1 root root 8, 0 Oct 26 20:22 sda
brw-r--r--  1 root root 8, 1 Oct 26 20:22 sda1
brw-r--r--  1 root root 8, 2 Oct 26 20:22 sda2
brw-r--r--  1 root root 8, 3 Oct 26 20:22 sda3
brw-r--r--  1 root root 8, 4 Oct 26 20:22 sda4
[/code]
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Sat Oct 28, 2006 1:11 pm    Post subject: Reply with quote

Is that occurring after booting from the floppy? "No such file or directory" can be the result of missing shared libraries.
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Oct 28, 2006 2:27 pm    Post subject: Reply with quote

Chewi wrote:
Is that occurring after booting from the floppy? "No such file or directory" can be the result of missing shared libraries.

i ahve no shared librairies...
i have only busybox compiled in static mode(without glibc or uclibc)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum