jwh1981
Posts: 11
Joined: Fri Jul 27, 2012 1:58 pm

Barebones Debian install?

Fri Jul 27, 2012 2:05 pm

I apologize ahead of time if this is covered elsewhere, but are there any documentation/tutorials on making your own Debian image from start to finish? I am very familiar with using QEMU to install/boot Debian ARM in emulation. I was just curious if there is any info on getting the Pi to boot a self-made image and other topics, such as where to get the binary blob, how to setup X with the video driver, OpenGL, etc. all by hand for the do it yourself-er.

Thank you ahead of time.


jwh1981
Posts: 11
Joined: Fri Jul 27, 2012 1:58 pm

Re: Barebones Debian install?

Fri Jul 27, 2012 2:42 pm

Well that was a quick response and exactly what I needed :) A stage 2 is perfect for me since I just wanted a basic CLI install of Debian. Thank you very much.

jdbennet
Posts: 96
Joined: Sun Jul 22, 2012 2:25 pm

Re: Barebones Debian install?

Fri Jul 27, 2012 2:52 pm

Ive not tried it myself but its what the guy used for this which i have: http://www.linuxsystems.it/2012/06/rasp ... mal-image/

vmp32k
Posts: 14
Joined: Fri Jul 27, 2012 3:05 pm

Re: Barebones Debian install?

Fri Jul 27, 2012 3:14 pm

I just made my own raspbian based environment with debootstrap: http://wiki.debian.org/EmDebian/CrossDe ... p_approach

You just need to slightly alter the debootstrap arguments:

Code: Select all

debootstrap --foreign --no-check-gpg --arch=armhf wheezy piroot-raspbian/ http://archive.raspbian.org/raspbian
Argument breakdown:
debootstrap --foreign - bootstrap a foreign architecture
--no-check-gpg - ignore package signatures, I had an issue with them which you may not have now
--arch=armhf - hard-float architecture
wheezy - debian release
piroot-raspbian/ - target directory
http://archive.raspbian.org/raspbian - primary raspbian mirror, you can choose your own from here http://www.raspbian.org/RaspbianMirrors
This command will likely fail because it tries to configure packets not meant for your host architecture, this is normal - just keep following the steps. ;)

Before copying everything to your SD card you may need to prepare the system a bit further by chroot'ing into it (automatically activates qemu to do binary translation, if you followed the CrossDebootstrap guide) and installing a few packages like dhcpclient, openssh-server, wget, mc and the likes.

Let me know if it worked for you or if you have any problems. :D

sbcc
Posts: 1
Joined: Fri Mar 29, 2013 8:04 pm

Re: Barebones Debian install?

Fri Mar 29, 2013 8:13 pm

Hi,

I'm running into this error while debootstrap (from debootstrap.log)

Code: Select all

dpkg-deb: file `.//var/cache/apt/archives/plymouth_0.8.5.1-5_armhf.deb' contains ununderstood data member data.tar.xz     , giving up
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Any thoughts as to why?

Thanks

Return to “Advanced users”