testing for RPi chroot's kernel arch -- getting different results (anrv7l vs armv6l) depending on how I test. why?

Leitzell, Harry Harry.Leitzell at grainger.com
Thu Sep 4 08:24:16 PDT 2014


Here is a Jessie qemu-debootstrap done about an hour ago on Ubuntu 14.04.1:

/mnt/raspbian# chroot rootfs bash -c "grep PRETTY_NAME /etc/os-release"
PRETTY_NAME="Raspbian GNU/Linux jessie/sid"
/mnt/raspbian# chroot rootfs bash -c "uname -rm"
3.13.0-35-generic armv7l
/mnt/raspbian# chroot rootfs
/# uname -rm
3.13.0-35-generic armv7l


/mnt/raspbian# dpkg -l | grep qemu-user-static
ii  qemu-user-static                    2.0.0+dfsg-2ubuntu1.2
 amd64        QEMU user mode emulation binaries (static version)


What version of QEMU are you using?


Harry Leitzell | Principal Performance Engineer, eCommerce | W.W.
Grainger, Inc. 
500 W Madison St, Suite 3300 | Chicago, IL 60661-4512 | +1 (312) 802-7400







On 9/4/14, 9:55 AM, "Stephen Warren" <swarren at wwwdotorg.org> wrote:

>On 09/04/2014 07:51 AM, grantksupport at operamail.com wrote:
>> I've created & populated a Raspbian/*jessie* chroot on my openSUSE
>>host.  It'll be used for cross-building for my RPi.
>>
>> When checking the chroot's kernel arch, I get different results.
>>
>>  From my hosts' shell,
>>
>> 	chroot /opt/raspbian-chroot bash -c "uname -rm"
>> 		3.16.1-7.g90bc0f1-desktop armv7l
>>
>> or, 1st entering the chroot,
>>
>> 	chroot /opt/raspbian-chroot
>> 	uname -rm
>> 		3.16.1-7.g90bc0f1-desktop armv6l
>>
>>
>> Notice -- 'armv7l' vs 'armv6l'.
>
>I'm afraid I don't know the answer, but I'm curious what the following
>says:
>
>$ chroot /opt/raspbian-chroot bash
>$ uname -rm    # inside the chroot
>
>I wonder if bash somehow changes the environment, or perhaps running
>bach -c skips some login scripts that do/don't do something to change
>the environment? You might try editing /etc/profile and similar, and
>adding "uname -rm" to various points there to try and track down the
>issue.
>
>_______________________________________________
>linux-rpi-kernel mailing list
>linux-rpi-kernel at lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/linux-rpi-kernel




More information about the linux-rpi-kernel mailing list