iamhuskar
Posts: 5
Joined: Sun Apr 13, 2014 2:04 am

How can I build an sdcard image from scratch?

Wed Mar 16, 2016 6:35 am

Hi
i want to build an sdcard image from scratch.
I download uboot source and linux kernel source. then build .I get zImage and uboot bin.
but how to make a rootfs? should I use yocto project ?
if I have those file (bootloader rootfs kernel ...), how to make an sd card image like Raspbian image.

I find some links here.
https://github.com/andrius/build-raspbian-image
https://github.com/b-s101/build-raspberrypi-image

but i can't find any useful information to make the whole image file from source.

Any ideas?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: How can I build an sdcard image from scratch?

Wed Mar 16, 2016 6:56 am

If you REALLY mean from scratch, http://www.intestinate.com/pilfs/.

If not, then there are various alternatives, depending on what you want to accomplish - buildroot, yocto, openembedded, debootstrap, aboriginal linux and plenty of others.

If you want a Raspbian image, then debootstrap is the way to go. If you want to build the image from an x86-type system, the qemu-debootstrap.

iamhuskar
Posts: 5
Joined: Sun Apr 13, 2014 2:04 am

Re: How can I build an sdcard image from scratch?

Wed Mar 16, 2016 7:37 am

ShiftPlusOne wrote:If you REALLY mean from scratch, http://www.intestinate.com/pilfs/.

If not, then there are various alternatives, depending on what you want to accomplish - buildroot, yocto, openembedded, debootstrap, aboriginal linux and plenty of others.

If you want a Raspbian image, then debootstrap is the way to go. If you want to build the image from an x86-type system, the qemu-debootstrap.
thank your very much.
I have another arm board. I want to build an appropriate image(SD card or NAND ) for this board. although there are differences between different arm boards.they both need bootloader kernel and rootfs.
if i know the basic steps to build an image. I can make an image for my arm board quickly.


:( I am trying to improve my english.

Return to “Raspberry Pi OS”