debootstrap boot with grub/grub.efi

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
kroonen
Posts: 16
Joined: Sun May 20, 2012 1:34 pm

debootstrap boot with grub/grub.efi

Post by kroonen »

Hi,

I'm curious about howto bootstrap an o2 joggler.

I want to install wheezy, so I make a bootstrap image and I can compile the kernel with de kernel options and patches provided bij de ubuntu page form buzz

So that I have the bootstrap image and the kernel installed in this image

Now the part of the grub en grub.efi, how can I let it boot???

Can I just copy de vfat patrition of buzz (ubuntu) to my first paritition, or must the grud.efi be something special?? Compiled with the grub version of wheezy???

regards Richard
Wilberforce
Posts: 134
Joined: Sun Apr 15, 2012 4:52 pm

Re: debootstrap boot with grub/grub.efi

Post by Wilberforce »

The process you dessribed sounds about right. You can use grub.efi from someone elses build - just replace the initrd and kernel image with your own and change the mount points in grub.cfg.

You may want to check out:

http://joggler.exotica.org.uk/source/

Buzz has scripted his process (so you should just be able to adapt that)
kroonen
Posts: 16
Joined: Sun May 20, 2012 1:34 pm

Re: debootstrap boot with grub/grub.efi

Post by kroonen »

Well first thing I wanted to download the kernel and patch it.

I downloaded the kernel into /usr/src and extract is there /usr/src/linux-3.2.20

i also mad symb link linux -> linux-3.2.20

I downloaded in /usr/src 3.2.20joggler1.patch

then in /usr/src I execute the patch but it fails, what goes wrong????

usr/src# patch -p0 -i 3.2.20joggler1.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/drivers/i2c/busses/i2c-isch.c b/drivers/i2c/busses/i2c-isch.c
|index 0682f8f..f1cb3ae 100644
|--- a/drivers/i2c/busses/i2c-isch.c
|+++ b/drivers/i2c/busses/i2c-isch.c
--------------------------
File to patch:

Richard
kroonen
Posts: 16
Joined: Sun May 20, 2012 1:34 pm

Re: debootstrap boot with grub/grub.efi

Post by kroonen »

found


root@dedwheez:/usr/src/linux# patch -p1 < ../3.2.20joggler1.patch
patching file drivers/i2c/busses/i2c-isch.c
patching file drivers/video/backlight/Kconfig
patching file drivers/video/backlight/Makefile
patching file drivers/video/backlight/openframe_bl.c
patching file scripts/setlocalversion
patching file sound/pci/hda/patch_sigmatel.c
kroonen
Posts: 16
Joined: Sun May 20, 2012 1:34 pm

Re: debootstrap boot with grub/grub.efi

Post by kroonen »

Well it worked pretty good, debian wheezy is running, with kernel 3.2.20 it worked, without X.

Now I want to have x installed, but there are no emgd drivers for xserver 1.12.

So I took an new kernel (3.5.4) with the the poulsbo driver compiled.

I tried the patch for 3.2.20 but many errors.

I still compiled and installed the 3.5.4 kernel to test the poulsbo driver. The X server nog works but the sound is crappy ofcourse because the patch failed.

The question is who can change the patches to wokr with kernels 3.5 and above?

regards Richard
User avatar
BuZz
Site Admin
Posts: 1462
Joined: Fri Mar 04, 2011 1:15 am

Re: debootstrap boot with grub/grub.efi

Post by BuZz »

I probably can, but I won't be looking at newer kernels until the emgd driver supports them. as an alternative you could use to have emgd on debian, would be to build / get hold of a set of older xserver packages.

why not do a debootstrap of ubuntu base - close to debian in many respects - and you get the benefit of my existing packages for the joggler without having to rebuild them. my already provided base image is built from via debootstrap.
Juggler
Posts: 249
Joined: Thu Apr 21, 2011 2:34 am

Re: debootstrap boot with grub/grub.efi

Post by Juggler »

kroonen, could you share what you have made with the community here ?

I'd love to try out what you have made ! It sounds really interesting.
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: debootstrap boot with grub/grub.efi

Post by roobarb! »

I should probably mention that the kernels I use for sqpOS are here; they're based on BuZz's kernel config and patches, with just a few tweaks in the 3.2.30jog3 version to support the OpenFrame 2 and ath9k_htc (for WNDA3200 replacement wifi stick).
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
kroonen
Posts: 16
Joined: Sun May 20, 2012 1:34 pm

Re: debootstrap boot with grub/grub.efi

Post by kroonen »

Well status for now.

Debootstrap and booting works with debain wheezy. I used the grub files from buzz.

I found patches for kernel 3.3.7
https://aur.archlinux.org/packages.php?ID=57178

Thes work and I enabled the intel gma kernel driver.

Now after installx server it works out of the box and also the tocuhscreen.

Tried e17 with tablet interface and on screenkeyboard works.

I havn't tried multimedia etc. but the audio works.

I don't know if there more interest in putting your own debian on a joggler, else I will make a small howto, and open a new topic here

Richard
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: debootstrap boot with grub/grub.efi

Post by roobarb! »

You'll probably not have hardware video acceleration working on that, though - I don't believe the kernel drivers for the GMA500 support this yet. Also, watch out for your kernel version; 3.3.x is end-of-life now, while 3.2.x is still under development.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
Juggler
Posts: 249
Joined: Thu Apr 21, 2011 2:34 am

Re: debootstrap boot with grub/grub.efi

Post by Juggler »

kroonen wrote:Well status for now.

Debootstrap and booting works with debain wheezy. I used the grub files from buzz.

I found patches for kernel 3.3.7
https://aur.archlinux.org/packages.php?ID=57178

Thes work and I enabled the intel gma kernel driver.

Now after installx server it works out of the box and also the tocuhscreen.

Tried e17 with tablet interface and on screenkeyboard works.

I havn't tried multimedia etc. but the audio works.

I don't know if there more interest in putting your own debian on a joggler, else I will make a small howto, and open a new topic here

Richard
If you could do a howto, that would be great !

I was wondering if you could make some images of the work you have done too ( or whatever would be most appropriate ) so we could try out what you have done ? Even if it is on the rough side, that would be fine. As far as I am concerned there would be no expectation of answering questions/support from you, unless you wanted to.
Post Reply