bfw on raspberry pi  [INACTIVE]

BrazilFW 3.xhelp discussions in English.

bfw on raspberry pi

Mensagempor etelts » Ter Jan 14, 2014 7:48 pm

Hi to all !

Is anyone who had ported bfw on ARM V6 for use with Raspberry PI ?

Raspberry PI seems to be made on purpose to BFW: is very small, is very powerful, can be used for "advanced applications" thanks to its powerful system I/O ...

I would like testing BFW on rasperry but I am not sure that I have the ability to modify the build root to armV6 ...

Is there anyone who may be interested in this adventure ?

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Ter Jan 14, 2014 9:59 pm

Hi! I'm working in a version similar to BFW 2.x. I'm not porting, it's just a similar project.

But I have nothing yet. I built only a kernel, musl-libc and busybox. I'll release the Makefiles I use on github soon.

----------
Oi! Estou trabalhando em uma versão semelhante ao BFW 2.x. Eu não estou portando, é apenas um projeto similar.

Mas não tenho nada ainda. Eu construí apenas um kernel, musl-libc e busybox. Eu vou liberar os Makefiles que uso no github em breve.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Qua Jan 15, 2014 7:24 am

Ok, very well !

This night, before sleeping, I thought of a possible solution.

1) install on SD card the raspbian server version (headless);
2) install vbox headless (http://www.howtoforge.com/vboxheadless-running-virtual-machines-with-virtualbox-4.0-on-a-headless-ubuntu-10.10-server - this link is for 4.0 version, but if you google you can find also the tutorial for recent version);
3) use remotebox http://knobgoblin.org.uk/ to setup a vm;
4) import a image of bfw previosly maked on another pc with the build tree (or with install version of the branch 2.x);
5) fix the bug the cannot permit to bfw 2.x to boot from a vbox (looking on the forum of branch 2.x and you find the patch).

I thinking that this can will work.

If i have free time in the weekend, i will try ....

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Qua Jan 15, 2014 8:45 pm

VirtualBox doesn't run on ARM but x86/amd64 only. QEMU could do that but I wouldn't try. Don't look good emulate a x86 on an ARM 700 Mhz CPU although this guy did it: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=10635

I don't know about a bug who prevents BFW from booting on VirtualBox. I'm running BFW 2.x on VirtualBox for years.

-----
O VirtualBox não roda em ARM, mas só x86/amd64. O QEMU poderia fazer isso, mas eu não tentaria. Não parece bom emular um x86 em uma CPU ARM de 700 Mhz, embora esse cara fez isso: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=10635

Eu não sei sobre um bug que impede a inicialização do BFW no VirtualBox. Estou rodando BFW 2.x no VirtualBox por anos.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Qui Jan 16, 2014 7:33 am

Hi,

I don't know if vbox is a part of packets downladable from raspian reposity, but qemu is a good replacement !

As I told, maybe in the w.e. if I will have free time I try ...

About vbox problem, on the forum there are an old post about a kernel panic of an bfw images that boot without problem with vmware but not with vbox and there are also a downloadable iso with the patch, but now I don't find it.

But I have found this http://www.brazilfw.com.br/forum/viewtopic.php?f=2&t=70920&start=0 were is explained the solution.

When I porting bfw on vbox I have encountered the problem, but I have solved as explained.

If the solution with vbox or qemu not working fine, the only way you have is make a buildtree on a pc and crosscompiling for arm.

Reading in internet, this is no simple, but no more complicated.

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Qui Jan 16, 2014 1:00 pm

etelts escreveu:Hi,

I don't know if vbox is a part of packets downladable from raspian reposity, but qemu is a good replacement !


VirtualBox doesn't run on ARM at all.

I tried QEMU to run Raspbian on my AMD C-50 Dual 1Ghz netbook, but it's too slow to be useful. I wonder how is run QEMU on an ARM single 700 Mhz.
I think it couldn't be good.

etelts escreveu:If the solution with vbox or qemu not working fine, the only way you have is make a buildtree on a pc and crosscompiling for arm.


I built the cross-tools (gcc, binutils), kernel, libc (musl-libc) and busybox. I'll not port because I think the BFW "buildtree" is a mess.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Qui Jan 16, 2014 3:50 pm

ok, I had "googled" and is confirmed: vbox not run on ARM !!

QEMU can emulate x86, but I also believe that the performance will not be very good ... in any case worth a try, especially because BFW does not need a lot of resources, even in the presence of network traffic rather intense.

BFW buildtree is not very simple to use, I have encountered many problems using it, but I managed to make it work and now I can recompile the kernel and additional software that is no part of standard packages of BFW ...

I don't know if I will be able to make a cross compiling "buildtree" for ARM ... also because, for all working fine, is need that you use an "developing system" where running the same kernel version of the target devices (I spoke about my experiences on x86).

If you running the build tree based on 2.4.x kernel on a system with kernel 2.6.x all compiling but when you try to running the package that you have build on working BFW system you get floating point error and other similar errors.

For all these, I thinking that the firstly point is starting from a system based on the same kernel used from the BFW you want to re build.

Actualy I working with a 2.32 BFW version and I have resolved installing an old slackware 11 and upgrading the system kernel to the same version of the bfw (2.4.36.2).

If you are interested looking my previous post http://www.brazilfw.com.br/forum/viewtopic.php?f=3&t=86867.

The second step, when you have a working system for x86 platform, is implement the cross compiling for ARM and try to build all.

Reading google result for cross compiling ARM, does not seem too difficult.

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Qui Jan 16, 2014 9:44 pm

etelts escreveu:The second step, when you have a working system for x86 platform, is implement the cross compiling for ARM and try to build all.


I have a working system for x86 AND cross compiling for ARM. I'm able to boot Raspberry Pi with a minimal system (only busybox).

etelts escreveu:Reading google result for cross compiling ARM, does not seem too difficult.


http://cross-lfs.org/view/clfs-embedded/arm/
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Seg Jan 20, 2014 12:43 am

Give it a try:

Código: Selecionar todos
git clone git://github.com/br-lemes/simpler.git
cd simpler
git clone git://github.com/raspberrypi/linux.git
make


The command "git clone git://github.com/raspberrypi/linux.git" may take a very huge long time, so you may use another way to copy an apropriate linux kernel for Raspberry Pi in the "linux" subdirectory. The command "make" may take about 4 hours (it may vary).

When done copy the contents of the "boot" subdirectory to a SD card and try to boot Raspberry Pi.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Seg Jan 20, 2014 6:31 pm

If you want to try out of the box unzip and write to a SD card: http://www.4shared.com/zip/6XHDBVl2ba/boot.html
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Sex Jan 31, 2014 2:49 pm

Dear friend,

I am sorry for my long silence (I was out of my country for my job) !

I read now you post: ok, for all.

Now I have downloaded your testing tree with git (thank you, very helpfull) and now I am downloading the linux.git (for me is good speed ... 585 Kb/sec, no bad)

If I have undestand, you compiling without regard of your system kernel and lib.

I thinking that is preferible working in chrooted enviroment ... have not you problems comipling all things without chroot ?

In any case the download is almost finished (52% now) ... I will try and after post my impressions

Emlio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Sex Jan 31, 2014 4:02 pm

I have downloaded and started the compilation but I receive this error:

2014-01-31 19:41:00 (1,71 MB/s) - "binutils-2.23.2-musl-1.part" salvato [1750/1750]

binutils-2.23.2-musl-1.patch: OK
tar: Questo non sembra un archivio tar
tar: Passaggio alla prossima intestazione
tar: Uscita con stato di fallimento in base agli errori precedenti
make[4]: *** [binutils-2.23.2-musl-1] Errore 2
make[4]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils"
make[3]: *** [binutils-2.23.2-musl-1.patch] Errore 2
make[3]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils"
make[2]: *** [all] Errore 2
make[2]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src"
make[1]: *** [all] Errore 2
make[1]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools"
make: *** [all] Errore 2


Maybe there are some error in the Makefile ?

I will investigate tomorrow in the afternoon ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Sex Jan 31, 2014 9:07 pm

Sure there's errors in my Makefiles. It works for me but I must have missed something.

While you can't compile it yourself try this: http://www.4shared.com/zip/6XHDBVl2ba/boot.html

I got no troubles crosscompiling yet. I belive this way will be clearer but maybe I'm wrong. I'm based in these instructions: http://cross-lfs.org/view/clfs-embedded/arm/

I'll check the makefiles but it may take time.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Sáb Fev 01, 2014 8:48 am

Yes, checking makefile take time, but I will chek it in the afternoon ...

About your link, I tryed, but I don't be able to download ... I don't found link (only ads or other software).

I will update you about my test later ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Sáb Fev 01, 2014 12:21 pm

Ok, for some unknown reason the makefile don't download the binutils ...

I am not "make expert" but I don't see in makefile into binutils directory nothing command to download the file ... but I am not sure of this ...

In any case, after downloaded by hand binutilis and put it in cross-tools/src/binutils/ a new make command working, but now there is another error:

config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[7]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build/bfd/po"
make[7]: ingresso nella directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build/bfd/po"
make[7]: Nessuna operazione da eseguire per "info".
make[7]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build/bfd/po"
make[7]: ingresso nella directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build/bfd"
make[7]: Nessuna operazione da eseguire per "info-am".
make[7]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build/bfd"
make[6]: *** [info-recursive] Errore 1
make[6]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build/bfd"
make[5]: *** [all-bfd] Errore 2
make[5]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build"
make[4]: *** [all] Errore 2
make[4]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils/build"
make[3]: *** [build] Errore 2
make[3]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src/binutils"
make[2]: *** [all] Errore 2
make[2]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools/src"
make[1]: *** [all] Errore 2
make[1]: uscita dalla directory "/home/emilio/bfw-test/simpler/cross-tools"
make: *** [all] Errore 2


I am looking for makefile into binutils/build/bfd but I don't see nothing that inspire me about possible error solution ...

Need new investigations ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Sáb Fev 01, 2014 12:47 pm

"googling" I found this: https://sourceware.org/ml/crossgcc/2008-05/msg00071.html

Is no more recent post but maybe is userful ...

The solution is: after untar binutilis, touch binutils-2.23.2/bfd/doc/bfd.info (for explanations see the link).

After this, I get another error about download of gcc similar at the fist (make file don't download gcc).

And now ... compiling ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Sáb Fev 01, 2014 3:31 pm

I fixed the download issue. It was downloading binutils-2.23.2-musl-1.patch and trying to untar it. The download commands is included from Makefile.in.

I'll check the bfd/doc/bfd.info issue.

Thanks for testing.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Sáb Fev 01, 2014 5:50 pm

I've added the command touch binutils-2.23.2/bfd/doc/bfd.info. The problem passed unnoticed because I have makeinfo installed.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Seg Fev 03, 2014 4:43 pm

Ok,

during compiling I have found another makefile with the same problem: the makefile into busybox don't download busybox !

Apart from that, the compilation end without error.

But the raspberry don't boot :-(

With the file passed from you it don't start.

I have followed the directives at this link: http://elinux.org/RPi_Software and downloaded the original 3 files from here https://github.com/raspberrypi/firmware/tree/master/boot:

1) bootcode.bin
2) start.elf
3) fixup.dat

With this only files and the kernel compiled, the RPI boot, but hangup with the error:
Failed to execute /init
Kernel panic - not syncing: no init found

Before hangup, there are also a warning: unable to open an initial console.

Maybe there are some things in the kernel configuration that is not good !

Have you some ideas about ?

In any case,

I would like exchange ideas with you about the approach and future development of the bfw porting on RPi.

Firstly, if I have undestand, you have make a "standalone" from scratch cross compiling system for ARM. This is a good idea because your system is completely indipendent of the system where is "hosted" the cross compiling system, but, in my opinion, is a rigid system, because if I want compiling for example only one package, I must recompiling all.

I am not sure of this, but this is my opinion and I would like to know your point of view about this.

My idea on this point, before see your solution, was another: I thought it might have been from the development system of BFW 2.32 and only changing the directive of GCC before starting the compilation ...

I have a BFW development system based on a slackware 11 (see my post http://www.brazilfw.com.br/forum/viewtopic.php?f=3&t=86867#p313298 and I have frequently used for compiling only one new packet: working fine.

Maybe it can be used for compiling a new version of BFW 2.32 for ARM ... if this solution is praticable, we will have a simply and quickly solution for porting BFW onto RPi ....

Secondly, developing your approach, we need implement the adding of other packets and thinking to an semi-automated system for compiling (and simply adding to the working system) of new software packages ... is a good challenge (and a considerable amount of work).

In this case is my opinion that maybe can be more simple starting from a basic distro where we can have also other software that normaly is not included in BFW. For example in my home, I have a system where I running BFW vitualized on a debian base system where I running also asterisk, apache web server and a NAS ... On RPi, as sayed, is not possible to run vbox, but if we run a small linux system with some other things of the normal BFW version ... maybe can be more attractive.

But for now and firstly of all ... I thinking that is need to investigate the way this kernel don't boot !!!

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Seg Fev 03, 2014 9:10 pm

mmmhh ..... my ideas about using my devel. system based on bfw 2.32 tree may be are not praticable ...

I have not tryed but I am starting thinking about and I see some problem (all resolvibles but working hard) ...

For example: my system using old kernel and old gcc ... are my gcc to be able of compiling for new ARM ?

Maybe .. no ! Need recompiling new version of gcc ... but recompiling gcc on old kernel ??

Mmmmhhhh ...

Reading RPi web site there are many solutions proposed but all cannot permit re use of buildtree of BFW as it is ...

I need to clarify a bit but I think that the ideas and the project for porting BFW on RPI to be rethought a bit ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Ter Fev 04, 2014 12:15 am

etelts escreveu:Ok,

during compiling I have found another makefile with the same problem: the makefile into busybox don't download busybox !


I fixed this also, do git pull to update.

etelts escreveu:Apart from that, the compilation end without error.

But the raspberry don't boot :-(

With the file passed from you it don't start.

I have followed the directives at this link: http://elinux.org/RPi_Software and downloaded the original 3 files from here https://github.com/raspberrypi/firmware/tree/master/boot:

1) bootcode.bin
2) start.elf
3) fixup.dat


My internet conection is SLOW so I'm very carefull about the size of files in repository (as it will track all versions).
I used the cutdown versions:
1) bootcode.bin (it's the same)
2) start_cd.elf (cutdown version)
3) fixup_cd.dat (cutdown version)

To work this way you must set gpu_mem=16 in config.txt.

etelts escreveu:With this only files and the kernel compiled, the RPI boot, but hangup with the error:
Failed to execute /init
Kernel panic - not syncing: no init found

Before hangup, there are also a warning: unable to open an initial console.


This error is a missing file /dev/console. I use console=null in cmdline.txt file. Try if it works.

If not do mkdir dev && mknod dev/console c 5 1 in the packages/boot/initrd/src subdir.

etelts escreveu:I would like exchange ideas with you about the approach and future development of the bfw porting on RPi.

Firstly, if I have undestand, you have make a "standalone" from scratch cross compiling system for ARM. This is a good idea because your system is completely indipendent of the system where is "hosted" the cross compiling system, but, in my opinion, is a rigid system, because if I want compiling for example only one package, I must recompiling all.


You can compile one single package. For example, if you want recompile the dropbear do: cd packages/root/dropbear && make clean && make. You need to regenerate the root package, so do: cd .. && make clean && make.

All you need is the cross-tools in your path: cross-tools/bin subdir.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Ter Fev 04, 2014 12:36 am

etelts escreveu:Reading RPi web site there are many solutions proposed but all cannot permit re use of buildtree of BFW as it is ...

I need to clarify a bit but I think that the ideas and the project for porting BFW on RPI to be rethought a bit ...

Emilio


I don't like the idea of using a "buildtree".
I'll not port BFW but make a similar system.

My goal is a system running from RAM whose configuration is backuped as BFW. I'll not write the routing and firewall stuff and so on (as I'm not skilled on these). I just want music player daemon and samba working. I can do this with the current raspbian but it's unstable on power failures. Even changing the system to work readonly, the SD card gets corrupted very often (the system partition, not the vfat or other you may create).

But I'll write a good packaging system so you may add what you want to (including the routing as firewall stuff).
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Ter Fev 04, 2014 12:00 pm

ok for all.

I like your ideas about a system running in ram as bfw ... is a good thing ... is very fast and after the boot you can "switch off" the hdd or remove the sd card or usb (this improve the security of the system).

Ok, if it is possible to compile any single piece of software we can use it to develop the project.

I have make some "experiment" with your file and RPi.

If I put on sd card the the cmdline.txt with console=null, the system hangup but you don't see because the monitor display only a raspberry into left superior angle and all rest is black screen.

Putting start_cd.elf and fixup_cd.dat my RPi don't boot and do nothing ...

Usualy the error:

Código: Selecionar todos
Failed to execute /init
Kernel panic - not syncing: no init found


occour when, after kernel bootup, there aren't a root fs partiton and the kernel don't know what doing ...

When you have setup the system before making the kernel.img, how you have setting the rootfs ? Have you setup an ram disk where you have uncompress the fs and mounted it after kernel boot up ?

Maybe the rootfs mount or uncompress fail and this give the init error ...

Please, check this part (you are more quickly of me, because you know better what you have done), because I suspect that there are here some problems ...

About compiling, I have not put simpler dir in my path ... I have created only a directory bfw-test into my home and make all from simpler ...do you think that I must move simpler in /usr/local for example ?

I confirm that there are not /dev dir in packages/boot/initrd/src/ ... now I make it as you have suggested .. I guess that after this is sufficient re doing make in the simpler dir and the system recompiling only what is changed ...

About your problem with sd card, I suggest to use ext2 as fs because have not journaling and limit write operations on sd card ... not only, but in fstab mount the partition on sd card with the option noatime ... My esperience with linux on usb key taught me that if you don' t limit the writting on disk, the usb and sd will have shortly life ...

For the same reason, I move /tmp and /var/log in ramdisk ...

I hope this can help you.

Modify my system, recompiling, testing and reporting ....

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Ter Fev 04, 2014 3:39 pm

I am looking your cross compiling system and I don't see nothing about the creation of root fs ...
I am not more familiar with Makefile, but I see that you create correctly the kernel.img but I don't see where you create root fs ... and the fstab is empty ...

Maybe you need copy packages/boot/initrd/src in system partition ?

I have not very clear as you mount the root fs ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Ter Fev 04, 2014 11:33 pm

The initrd is built in to the kernel.img.

File: config-kernel
CONFIG_INITRAMFS_SOURCE="../packages/boot/initrd/build/"


Just running make will not update all that has been modified, as would be expected. In each subdirectory are generated a lot of files and the compile times are very high. Instead of creating fine tuned makefiles listing each generated file and each one of it's dependencies I prefer create some flag files to sign whether or not recompile certain code.

For example, when you modify a file in packages/boot/initrd/src the changes will only take effect if you do the following:

Código: Selecionar todos
packages/boot/initrd $ make clean
packages/boot/initrd $ make
packages/boot/initrd $ cd .. / kernel
packages/boot/initrd $ rm install build
packages/boot/initrd $ make


These commands will remove and recreate packages/boot/initrd/build. Then it'll remove the flag files indicating that the kernel was built and build a new one embedding packages/boot/initrd as the initramfs.

This system is a bit confusing and needs documentation but I'm still working on improving it.

To use the simpler cross-tools just do: export PATH=/home/emilio/bfw-test/simpler/cross-tools/bin:$PATH (you may want to put that on your .bashrc). Then use arm-linux-mulseabihf-gcc instead of gcc.
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Qua Fev 05, 2014 8:30 am

thank you for explanation.

Very well !

Yes the system maybe will be improved, but for now, what is realy important is know the mecanism as it work ...

In any case, after my post, I tryed make again and I seen that it don't working as expected.

So, I doing make clean and recompiling all (in the future I will do your procedure).

But the resul is not changed ... the system hangup with the same error about init ...

Now I will try to download your boot.html and testing with it ...

I cannot download ... the only applications that i can download is iLivid.exe ... I don't know it is your file ...
I don't know as, but I have also download another file boot.exe, I have double clicked and open an applications that want save in c:/emilio/users/Desktop (??? I am using linux ... ) ... clicking on the button donwload of the application, it open a form, I compiled, but when I click create new account (propedeutic for download) it tell me that I have not written email (and I have put it) ...

Maybe or I wrong some thing or there are some thing that not working as done ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Qua Fev 05, 2014 1:02 pm

It should be a zip file. Try this link: http://www.4shared.com/get/6XHDBVl2ba/boot.html
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Qui Fev 06, 2014 8:59 am

there aren't any link to a .zip .... try your self ...

The boot.zip on the page are not cliccable ( is no a link), if you click on the panel on the right the boot.zip, you open another page where there is written "waiting 20 sec for download" and done nothing, on this new page if you click on the various link with the written "download", you download only software that are not your ...

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor br_lemes » Qui Fev 06, 2014 7:55 pm

You need click "free download" button below the "waiting 20 sec for download" message. It'll count down to 0 and download. Did you never downloaded files from 4shared before?
Se você tem uma maçã e eu tenho outra; e nós trocamos as maçãs, então cada um terá sua maçã. Mas se você tem uma ideia e eu tenho outra, e nós as trocamos; então cada um terá duas ideias.

http://www.br-lemes.net/
Avatar do usuário
br_lemes
BFW Beneméritos
 
Mensagens: 82
Registrado em: Dom Jun 19, 2011 12:46 am
Localização: Apiacás - MT
BrazilFW Box:

Re: bfw on raspberry pi

Mensagempor etelts » Seg Fev 10, 2014 11:15 am

ok, was need my registration ... now I am registered and have download your file, now cheking and reporting.

Thanks,

Emilio
Avatar do usuário
etelts
BFW Novice
 
Mensagens: 50
Registrado em: Sáb Fev 05, 2011 5:29 pm
BrazilFW Box:


Voltar para BrazilFW 3.x - English Forum

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 5 visitantes

cron