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

Stephen Warren swarren at wwwdotorg.org
Thu Sep 4 19:19:05 PDT 2014


On 09/04/2014 07:57 PM, grantksupport at operamail.com wrote:
> Hi,
> 
> First checking; & still ...
> 
> 	chroot /opt/raspbian-chroot bash -c "uname -rm"
> 		3.16.1-7.g90bc0f1-desktop armv7l
> 
> and
> 
> 	chroot /opt/raspbian-chroot
> 	uname -rm
> 		3.16.1-7.g90bc0f1-desktop armv6l
> 
> On 09/04/2014 07:55 AM, Stephen Warren wrote:
> ...
>> 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
> 
> 	chroot /opt/raspbian-chroot bash
> 	uname -rm
> 		3.16.1-7.g90bc0f1-desktop armv6l
> 
> hmm.
> 
>> 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.
> 
> Not a lot there,
...
> 	cat /root/.bashrc
> 		export QEMU_CPU=arm1176

I would suspect that. Try removing or comment that line and retesting.



More information about the linux-rpi-kernel mailing list