Re: [DNG] Has anybody else experienced Raspberry Pi breakage ?

2020-05-18 Thread tuxd3v

hello,

Citando g4sra via Dng :


On 17/05/2020 20:26, Dr. Nikolaus Klepp wrote:

Anno domini 2020 Sun, 17 May 13:20:13 +0100
g4sra via Dng scripsit:
I have an old Rpi 2B that will boot its original Raspbian fine but  
panics 'killing init' on Devuan.

Has anybody else experienced this ?

The only difference I can discern is that the Devuan repository  
executables (init) are compiled as PIE.

Any suggestions to further the diagnosis of this issue gratefully received.


I have devuan running o a A+. I did not see this here. Maybe your  
SD card is broken?


Its not the SD, it boots fine in a Pi3.
There is no problem with the kernel, DT,s, config.txt, cmdline.txt  
(or the PSU).

Everything is hunky dory until /sbin/init is loaded by the kernel.
This is possibly an ARMv6 ~ ARMv7 BCM toolchain issue.

Devuans init differs from Raspbians SystemD... PIE and the GLIBC so
Devuan must have used a different toolchain to Raspbian.

I need pointers what\where to poke next...


were you got that Image from?
I run devuan in my RPI1, with no problems

Attach a usb-serial cable to ttyAMA0, and see what it spit out.. :)

You can also create a thread in the forums:
https://dev1galaxy.org/viewforum.php?id=24

Best Regards,
tux
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Has anybody else experienced Raspberry Pi breakage ?

2020-05-18 Thread tuxd3v

Hello,

Citando g4sra via Dng :

I have an old Rpi 2B that will boot its original Raspbian fine but  
panics 'killing init' on Devuan.

Has anybody else experienced this ?

The only difference I can discern is that the Devuan repository  
executables (init) are compiled as PIE.

Any suggestions to further the diagnosis of this issue gratefully received.
 


I can tell you what it is not about :)
it is not because Init was compiled with -fpic ..

There are a ton of options for that,
The most basic one is not even related with init..

When you launch the kernel, you pass to it the roofs, so that he can  
mount it( to cal init after )..
If the rootfs is wrongly passed in bootargs, the kernel will attempt  
to launch init, but will panic,
Because to launch init it means that he already mounted the  
FileSystem, but that doesn't happened...


So, I would ask you, about the contents of bootargs:
this are the contents of mine:
'earlyprintk=serial,ttyAMA0,115200n8 console=ttyAMA0,115200n8  
console=tty0 root=/dev/mmcblk0p2 rw rootfstype=ext4 elevator=noop  
fsck.repair=yes rootwait net.ifnames=0 smsc95xx.turbo_mode=N  
dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 selinux=0 noinitrd'


this is my /proc/cmdline:
'# cat /proc/cmdline
console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2  
rootfstype=ext4 rootwait''


and my fstab:
'# cat /etc/fstab

#                             
/dev/mmcblk0p1        /boot    vfat    defaults        0        2
/dev/mmcblk0p2        /    ext4    defaults,noatime    0        1
/dev/zram0         swap    swap    pri=1            0        0'

If you have the bootargs correct for rootfs, check '/etc/fstab', if  
its the same. :)

here in my case:
putting  '/dev/mmcblk1p2' instead of '/dev/mmcblk0p2'( in fstab ) will  
also lead to a kernel panic, has the system cannot mount root  
filesystem..


Does you were operating your RPI before with devuan, or you just tried devuan?
How did you tried devuan?
making a mix between respbian, and devuan rootfs?
Or it was via a devuan image?

You can take also, to the forums, were maybe you will receive better support,
https://dev1galaxy.org/viewforum.php?id=24

Best Regards,
tux
 
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Has anybody else experienced Raspberry Pi breakage ?

2020-05-17 Thread g4sra via Dng
On 17/05/2020 20:26, Dr. Nikolaus Klepp wrote:
> Anno domini 2020 Sun, 17 May 13:20:13 +0100
>  g4sra via Dng scripsit:
>> I have an old Rpi 2B that will boot its original Raspbian fine but panics 
>> 'killing init' on Devuan.
>> Has anybody else experienced this ? 
>>
>> The only difference I can discern is that the Devuan repository executables 
>> (init) are compiled as PIE.
>> Any suggestions to further the diagnosis of this issue gratefully received.
> 
> I have devuan running o a A+. I did not see this here. Maybe your SD card is 
> broken?

Its not the SD, it boots fine in a Pi3.
There is no problem with the kernel, DT,s, config.txt, cmdline.txt (or the PSU).
Everything is hunky dory until /sbin/init is loaded by the kernel.
This is possibly an ARMv6 ~ ARMv7 BCM toolchain issue.

Devuans init differs from Raspbians SystemD... PIE and the GLIBC so
Devuan must have used a different toolchain to Raspbian.

I need pointers what\where to poke next...

> 
> Nik
> 
>> ___
>> Dng mailing list
>> Dng@lists.dyne.org
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>>
> 
> 
> 

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Has anybody else experienced Raspberry Pi breakage ?

2020-05-17 Thread Dr. Nikolaus Klepp
Anno domini 2020 Sun, 17 May 13:20:13 +0100
 g4sra via Dng scripsit:
> I have an old Rpi 2B that will boot its original Raspbian fine but panics 
> 'killing init' on Devuan.
> Has anybody else experienced this ? 
> 
> The only difference I can discern is that the Devuan repository executables 
> (init) are compiled as PIE.
> Any suggestions to further the diagnosis of this issue gratefully received.

I have devuan running o a A+. I did not see this here. Maybe your SD card is 
broken?

Nik

> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> 



-- 
Please do not email me anything that you are not comfortable also sharing with 
the NSA, CIA ...
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Has anybody else experienced Raspberry Pi breakage ?

2020-05-17 Thread tom
On Sun, 17 May 2020 13:20:13 +0100
g4sra via Dng  wrote:

> I have an old Rpi 2B that will boot its original Raspbian fine but
> panics 'killing init' on Devuan. Has anybody else experienced this ? 
> 
> The only difference I can discern is that the Devuan repository
> executables (init) are compiled as PIE. Any suggestions to further
> the diagnosis of this issue gratefully received.
> ___ Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

I ran Devuan on the pi for a while. It kept breaking because of the
insane mount options for the root partition on the sd card that
disables all filesystem safety. I'd suggest running debsums on the pi
and seeing if disk corruptions have occurred. Alternatively I have
switched to using NetBSD 9 on my pis and it's been a much more stable,
reliable, and predictable experience.

-- 
 _ 
/ Matz's Law: \
| |
| A conclusion is the place where you got |
\ tired of thinking.  /
 - 
\
 \
   /\   /\   
  //\\_//\\ 
  \_ _//   /
   / * * \/^^^]
   \_\O/_/[   ]
/   \_[   /
\ \_  /  /
 [ [ /  \/ _/
_[ [ \  /_/
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Has anybody else experienced Raspberry Pi breakage ?

2020-05-17 Thread g4sra via Dng
I have an old Rpi 2B that will boot its original Raspbian fine but panics 
'killing init' on Devuan.
Has anybody else experienced this ? 

The only difference I can discern is that the Devuan repository executables 
(init) are compiled as PIE.
Any suggestions to further the diagnosis of this issue gratefully received.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng