Chronicles of LFS #0 - The Beginning
Ok,
adesso ho proprio tutto. Il thin client è arrivato a casa mia e aspetta solo di ricevere una bella distro e qualche demon da tenere attivo nelle calde giornate estive e nelle fredde notti invernali. Adesso non ho più scuse e posso cominciare a costruire la mia piccola creatura, il mio penguin-origama-edition, era da tanto che avevo in mente di farlo ma ho sempre temuto. I timori sonosempre gli stessi: e se poi non ci riesco? E se poi ci metto troppo tempo? E se tralascio altri affari (qualcuno ha detto università?) per questo?
Adesso però non ci sono più scuse, il training autogeno in questo momento verte sul fatto che per giustificare la spesa per l’acquisto del giocattolo (si stiamo ancora parlando del Thin Client) bisogna metterlo in funzione e visto che il giocattolo non ha coprocessore matematico bisogna costruirgli un kernel su misura, e magari una distro personalizzata e minimalista all’estremo con giusto il necessario per l’esecuzione di mldonkey, firefly, ssh, samba, sendmail, e qualcos’altro che al momento mi sfugge. Cosette che fanno comodo ad un utente domestico. Linux From Scratch fa proprio al caso mio.
Con questo articolo ne apro una serie che aggiornerò ogni volta che avrò fatto un passo avanti <sottovoce>o indietro</sottovoce>.
Intanto ho cominciato con lo stampare il libro (versione 6.2, si lo so che esiste già la versione 6.3 ma il libro lo ho conosciuto su P.L.U.T.O. e mi sembrava corretto utilizzare la loro versione corrente) e registrarmi come utente ufficiale (origama 19979).
Prima di preparare la partizione però voglio assicurarmi che il sistema lfs che compilerò sol sistema host sarà in grado sul’hardware x86 privo di coprocessore matematico e allora faccio una capatina sul canale irc di supporto di lfs, vi riporto la discussione che ne è venuta fuori:
#lfs-support
(19:40:26) origama:hi
(19:40:47)Cosmo:hey origama
(19:41:23)origama:i am starting now to build my lfs system but i have a simple question
(19:41:53)Cosmo:cool
(19:41:59)Cosmo:I should warn you, I have chop sticks
(19:42:23)origama:i want to compile lfs for a ebox thin client tha have not mathematical coprocessor
(19:42:47)origama:anyway it is full x86 compatible
(19:42:53)origama:my question is
(19:43:48)origama:can i build the system on a 486 (anoter one that i have) with coprocessor and then move it in the thin client?
(19:44:07)RobotAssassin:negative.
(19:44:25)origama:mmmm….
(19:44:35)RobotAssassin:Each lfs build is dependant on the platform on which its built.
(19:44:38)Aaediwen:I see no reason for issue
(19:44:47)Aaediwen:RobotAssassin: but there is leeway
(19:44:47)Cosmo:RobotAssassin: you can
(19:44:51)ronghail:sorta
(19:45:06)Cosmo:you can’t put a i686 build on a i486
(19:45:26)ronghail:you can build a kernel that will work on both
(19:45:27)Cosmo:but you can put a i486 build on a i686
(19:45:30)Aaediwen:but you can do a 486 build on a 686
(19:45:42)origama:i thought that i can simply add the coprocessor emulation in the kernel at the end of compilation
(19:45:56)Aaediwen:and the math coprocessor issue should be noot anyway
(19:46:31)ronghail:well
(19:46:40)ronghail:I have not implemented it yet
(19:48:03)ronghail:origama: umm, not sure what you are asking but it is doable![]()
(19:48:59)origama:so what i have to pay attention in to get a working linux for the thin client?
(19:49:23)Cosmo:origama: I’ve got one LFS working on 3 different processors fine![]()
(19:49:43)origama:the coprocessor emulation in the kernel?nothing else?
(19:49:56)origama:nothing more?
(19:50:26)Cosmo:I don’t think the programs care about the co-processor
(19:52:01)origama:so i don’t have to care about the absence of the coprocessor in the building of the toolchain?
(19:52:30)Cosmo:a coprocessor shows up as a second cpu right?
(19:53:32)origama:i don’t know :-~
(19:55:26)pdu:Cosmo: a maths co processor doesn’t tend to show up as a 2nd cpu
(19:55:51) pdu:i thought they were all built-in to the cpu these days
(19:56:24) origama:pdu: i think so too
(19:57:00)pdu:486 was the last to have them seperate, almost all i ever saw were Waitek math copros
(19:57:21)pdu:that was the difference between SX and DX models (and the DX tended to be faster too)
(19:58:27)origama:aniway i don’t have to care about cross-compile issues,isn’t it?
(20:21:41)origama:so i think i will build the standard lfs (following the book) until i will reach the kernel section, then i will build a kernel with mathematical coprocessor emulation support. I hope that it will work. thank you all.
(20:22:14)Cosmo:the book just says build a kernel, doesn’t say how you should configure it![]()
(20:23:13)origama:ok, this match with my intentions
Da questa conversazione ho capito che il sistema dovrebbe girare senza problemi dato che l’unicocomponente ad essere influenzato pesantemente dalla presenza di coprocessore è il kernel che deve essere compilato con emulazione abilitata.
Il libro consiglia di avere una partizione separata così ho creato una ext3 su una SD Kingstone da 2GB. So che può risultare una operazione distruttiva per la scheda manon mi andava di intervenire sul disco, diciamo, “di produzione”. Inoltre in questo modo potrò avviare direttamente il sistema dalla scheda.
Fatto questo ho cominciato a scaricare i sorgenti necessari alla compilazione del sistema.
Questa operazione sarà un po lunga quindi per ora la le cronache finiscono qua. Alla prossima.







