Creating .img file for ARM(x) step by step.

bsaidus

Active Member

Reaction score: 3
Messages: 102

Hello.
I succesfully compiled FreeBSD for ARM6 and ARM7 to install them on Raspberry Pi (3 or 4 ).
make TARGET_ARCH=armv6 buildworld __SRCCONF=/mnt/config/uc_src.conf __MAKE_CONF=/mnt/config/uc_make.conf DESTDIR=/mnt/armv6uccen_frsh
make TARGET_ARCH=armv6 buildkernel KERNCONF=UCCENRPIB __SRCCONF=/mnt/config/uc_src.conf __MAKE_CONF=/mnt/config/uc_make.conf DESTDIR=/mnt/armv6uccen_frsh

The UCCENRPIB is a copy of RPI-B kernel config.


The current question for Me is to create a memory disk, mount it and create partitions.
# create a zero filled file arm6_5g.img with 5GB.
dd if=/dev/zero of=arm6_5g.img count=10240000
# mount a file as memory disk
mdconfig -a -t vnode -f arm6_5g.img -u 0
Now I must create with gpart all necessary partition on it .
then mount ROOT partition and install my world & kernel in it.
Do modify what necessary and burn it on Stick.
But I've never tested or Played with RASPBERRY Pi.
Some one could point me to the wright point ( How to Create partitions and configure theme ( for FreeBSD i386 & AMD64 it's OK )?

Thank you.

PS: I've downloaded the prebuild FreeBSD 12.2 .img(s) and mount theme but I saw that in /etc/fstab there is a MSDOS partitions.

Help me please
 
OP
bsaidus

bsaidus

Active Member

Reaction score: 3
Messages: 102

Waw, I've find somethings in /usr/src/release/tools.
Do you recommend read them?
 

Phishfry

Beastie's Twin

Reaction score: 2,646
Messages: 5,561

Maybe you can glean a bit of information from my cross-compile post.
 
OP
bsaidus

bsaidus

Active Member

Reaction score: 3
Messages: 102

Thanks you very welle for your help.
I'll informe you later for the results.
 
Top