Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1)

2023-02-11 Thread Rich Felker
On Sat, Feb 11, 2023 at 07:27:39PM +, Bastian Bittorf wrote: > On Sat, Feb 11, 2023 at 09:01:03AM -0500, Rich Felker wrote: > > It looks like the powerpc spe longjmp code is clobbering the value > > argument. Try the attached patch. > > > diff --git a/src/setjmp/powerpc/longjmp.S b/src/setjmp/

Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1)

2023-02-11 Thread Bastian Bittorf
On Sat, Feb 11, 2023 at 09:01:03AM -0500, Rich Felker wrote: > It looks like the powerpc spe longjmp code is clobbering the value > argument. Try the attached patch. > diff --git a/src/setjmp/powerpc/longjmp.S b/src/setjmp/powerpc/longjmp.S > index 611389fe..465e4cd7 100644 > --- a/src/setjmp/powe

Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1)

2023-02-11 Thread Bastian Bittorf
On Sat, Feb 11, 2023 at 12:51:47PM +, Bastian Bittorf wrote: > With OpenWRT i recognized a strange behavior of ash-shell scripts. > It happens only on target PowerPC, e.g. m68k, arm, mips, x86 are > unaffected. to be more clear: it seems to affect musl, but not glibc build. bye, Bastian

Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1)

2023-02-11 Thread Rich Felker
On Sat, Feb 11, 2023 at 12:51:47PM +, Bastian Bittorf wrote: > With OpenWRT i recognized a strange behavior of ash-shell scripts. > It happens only on target PowerPC, e.g. m68k, arm, mips, x86 are > unaffected. > > The visible strange behavior in 'ash' is: > > $ test A -gt 5 && echo OK > ash:

Re: MT7621 NAND OOB misdetect

2023-02-11 Thread Chuanhong Guo
Hi! On Sat, Feb 11, 2023 at 8:41 PM Peter Naulls wrote: > > On 2/10/23 22:41, Chuanhong Guo wrote: > > Hi! > > > 16.163318] 8 fixed-partitions partitions found on MTD device mt7621-nand > > > > From the datasheet here: > > https://www.mxic.com.tw/Lists/Datasheet/Attachments/8858/MX30LF1G28AD,%20

busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1)

2023-02-11 Thread Bastian Bittorf
With OpenWRT i recognized a strange behavior of ash-shell scripts. It happens only on target PowerPC, e.g. m68k, arm, mips, x86 are unaffected. The visible strange behavior in 'ash' is: $ test A -gt 5 && echo OK ash: A: out of range OK Ofcourse this wrong returncode leads to all sorts of things.

Re: MT7621 NAND OOB misdetect

2023-02-11 Thread Peter Naulls
On 2/10/23 22:41, Chuanhong Guo wrote: Hi! 16.163318] 8 fixed-partitions partitions found on MTD device mt7621-nand From the datasheet here: https://www.mxic.com.tw/Lists/Datasheet/Attachments/8858/MX30LF1G28AD,%203V,%201Gb,%20v1.3.pdf The MX30LF1G28AD actually have 2K+128 flash layout, so i