Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Raspberry Pi & Gentoo?
Date: Wed, 16 Apr 2014 19:59:01
Message-Id: loom.20140416T214336-410@post.gmane.org
In Reply to: Re: [gentoo-user] Raspberry Pi & Gentoo? by Jarry
1 Jarry <mr.jarry <at> gmail.com> writes:
2
3
4 > >> 1. What is better to use as OS-storage: USB-stick or SD-card?
5
6 > > Both are $8 for 16GB of storage, so wear / failure is only a concern if
7 the server is to be inaccessible.
8
9 > But not every flash-memory is the same. Are you sure SD and
10 > USB are about the same? I thought USB-sticks were a little
11 > higher (comparable with CF, which is surely more reliable
12 > than SD)...
13
14 I've got some minimalized Gentoo servers, 586 vintage, still running
15 on the original SD cards. I used "quality" cards, vintage 2006. The
16 trick I found was to run the -Os small kernel and keep everything in ram,
17 if that is possible. Also use ext2 file system, as it is better on
18 minimal hardware. NFS mount busy stuff to other drives across the net.
19
20 ROCK Solid..... as minimalized gentoo servers on SD for a 8 years now.
21 If you build on Rpi, it's at least a minimal system, or it can be set
22 up as a pure embedded system:
23
24 # uname -r
25 2.6.25-hardened-r7
26
27 cat /proc/meminfo
28 MemTotal: 254224 kB
29 MemFree: 222112 kB
30 Buffers: 2080 kB
31 Cached: 19808 kB
32 SwapCached: 0 kB
33 Active: 14872 kB
34 Inactive: 10616 kB
35 <snip>
36
37 /dev/hda1 /boot ext2 noatime 1 2
38 /dev/hda2 none swap sw 0 0
39 /dev/hda3 / ext2 noatime 0 1
40
41
42 hdparm -i /dev/hda
43 /dev/hda:
44
45 Model=SanDisk SDCFB-4096, FwRev=HDX 4.03, SerialNo=003416B2397F2159
46 Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic }
47 RawCHS=7964/16/63, TrkSize=0, SectSize=576, ECCbytes=4
48 BuffType=DualPort, BuffSize=1kB, MaxMultSect=4, MultSect=4
49 CurCHS=7964/16/63, CurSects=8027712, LBA=yes, LBAsects=8027712
50 IORDY=no, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
51 PIO modes: pio0 pio1 pio2 pio3 pio4
52 DMA modes: mdma0 mdma1 mdma2
53 AdvancedPM=no
54 Drive conforms to: Unspecified: ATA/ATAPI-4
55
56 If you got the time to LEARN, gentoo as an embedded system if far
57 superior than a gentoo minimalized server, such as the above dinosaur.
58
59 You need to be *reasonable* with what you ask your Rpi to do; imho.
60
61 ps, be nice to Neil, Alan and the other old farts on this list, as we
62 all have very old toys we rarely talk about...... I.E. nothing new
63 in *nix, it's all just colorful and recycled, imho.
64
65 hth,
66 James