Author Topic: Calling all Linux Kernel developers!  (Read 391975 times)

0 Members and 3 Guests are viewing this topic.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #855 on: April 27, 2013, 11:34:38 am »
Created a folder called "--foreign" containing a log file:
Code: [Select]
/usr/sbin/debootstrap: 175: [: =: unexpected operator
/usr/sbin/debootstrap: 415: /usr/sbin/debootstrap: : Permission denied

I even ran it with sudo
« Last Edit: April 27, 2013, 11:35:16 am by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #856 on: April 27, 2013, 11:37:15 am »
Actually, I think you found a bug.
I tried it just now, the following works fine:
Code: [Select]
mkdir root
debootstrap --arch armel --foreign --no-check-gpg squeeze root
qemu-binfmt-conf.sh
cp `which qemu-arm` `which qemu-arm-binfmt` root/usr/bin
chroot root
debootstrap/debootstrap --second-stage
« Last Edit: April 27, 2013, 12:05:50 pm by Vogtinator »

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #857 on: April 27, 2013, 11:50:52 am »
I don't have "qemu-binfmt-conf.sh"
Can you upload a copy?

Edit: or is it this http://svn.kju-app.org/trunk/qemu/qemu/qemu-binfmt-conf.sh
« Last Edit: April 27, 2013, 11:51:31 am by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #858 on: April 27, 2013, 11:52:20 am »
No, that is distro specific. You have to install qemu binfmt support (opensuse: qemu qemu-tools qemu-linux-user debian: qemu binfmt-support qemu-user-static)

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #859 on: April 27, 2013, 12:03:12 pm »
So I installed the packages, but I have no idea what to do with them...
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #860 on: April 27, 2013, 12:03:47 pm »
Run the commands?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #861 on: April 27, 2013, 12:05:01 pm »
Nothing directly. The fact that the qemu-user binaries are registered into binfmt-support will make it possible to finish debootstrap, according to the procedure sketched by Vogtinator, which I had detailed more at some point somewhere :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #862 on: April 27, 2013, 12:07:26 pm »
Sorry, I tried running "qemu-binfmt-conf.sh", "qemu-binfmt-conf", and just plain "qemu"
Which commands do you mean?
(Sorry if this seems like a lot of questions, but I'm new to this)
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #863 on: April 27, 2013, 12:08:11 pm »

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #864 on: April 27, 2013, 12:14:00 pm »
I'm up to the .sh file on that, everything else before it has worked.
(Is the .sh file required, I started looking at an article on qemu on the debian wiki. The commands there look similar, but I'm not sure where the .sh file fits in...)
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #865 on: April 27, 2013, 12:15:06 pm »
You should be able to run it directly

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #866 on: April 27, 2013, 12:18:28 pm »
Sorry, I tried running "qemu-binfmt-conf.sh", "qemu-binfmt-conf", and just plain "qemu"

I can't...
I tried running "update-binfmts --display" and it showed something similar to the .sh file I posted a link to.. should I use that?
Or do you mean just move on to the next set of commands?
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #867 on: April 27, 2013, 12:21:05 pm »
http://wiki.debian.org/QemuUserEmulation should help.
It seems you don't have to run it on debian, it will get executed automatically.
You also don't have to copy the files, you have to copy qemu-arm-static only.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #868 on: April 27, 2013, 07:08:15 pm »
I think I understand the general idea of what I'm supposed to do, I just have to figure out how to do it...
As of the last time I tried it "chroot root" gave me the error: "chroot: cannot change root directory to root: Operation not permitted" but I will keep working on it, thanks for your help!

Edit:   :-\ Oops... forgot the sudo... how silly of me. Well, chroot worked.

Edit 2: Debian works, I think... I can't log in... what is the user and password I need to use?

Edit 3: Debian works all the way, now.  :w00t: Forgot you could change the password while using qemu...
« Last Edit: April 27, 2013, 09:54:51 pm by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Zeklandia

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 14
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #869 on: May 17, 2013, 07:50:33 am »
I have both the large and small kernels, large and small initrd's, and 2 separate .ll2's for launching them, but both kernels give me the same rootfs error you got in the screenshot in the OP.
Zeklandia
Linux, Android, Java, C/C++ Developer.