wok-tiny rev 181
x86test: add a patch for NMOS 8088
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 20 13:53:13 2023 +0000 (7 months ago) |
parents | e05af9592e8b |
children | bbb34fe4904d |
files | custom-console/receipt fbvnc-config/receipt fbvnc-ssh/receipt module-vfat/receipt x86test/receipt x86test/stuff/patch.S |
line diff
1.1 --- a/custom-console/receipt Wed Sep 20 13:08:44 2023 +0000 1.2 +++ b/custom-console/receipt Wed Sep 20 13:53:13 2023 +0000 1.3 @@ -10,6 +10,7 @@ 1.4 WEB_SITE="http://tiny.slitaz.org/" 1.5 DEPENDS="base-tiny" 1.6 SUGGESTED="module-usbserial module-serial" 1.7 +CONFIG_FILES="/etc/init.d/tty.sh" 1.8 1.9 # Rules to gen a SliTaz package suitable for Tazpkg. 1.10 genpkg_rules()
2.1 --- a/fbvnc-config/receipt Wed Sep 20 13:08:44 2023 +0000 2.2 +++ b/fbvnc-config/receipt Wed Sep 20 13:53:13 2023 +0000 2.3 @@ -9,6 +9,7 @@ 2.4 LICENSE="BSD" 2.5 WEB_SITE="http://tiny.slitaz.org/" 2.6 DEPENDS="base-tiny" 2.7 +CONFIG_FILES="/etc/init.d/local.sh" 2.8 2.9 # Rules to gen a SliTaz package suitable for Tazpkg. 2.10 genpkg_rules()
3.1 --- a/fbvnc-ssh/receipt Wed Sep 20 13:08:44 2023 +0000 3.2 +++ b/fbvnc-ssh/receipt Wed Sep 20 13:53:13 2023 +0000 3.3 @@ -9,6 +9,7 @@ 3.4 LICENSE="BSD" 3.5 WEB_SITE="http://tiny.slitaz.org/" 3.6 DEPENDS="base-tiny fbvnc-config dropbear-client busybox-net" 3.7 +CONFIG_FILES="/etc/init.d/local.sh" 3.8 3.9 # Rules to gen a SliTaz package suitable for Tazpkg. 3.10 genpkg_rules()
4.1 --- a/module-vfat/receipt Wed Sep 20 13:08:44 2023 +0000 4.2 +++ b/module-vfat/receipt Wed Sep 20 13:53:13 2023 +0000 4.3 @@ -30,7 +30,7 @@ 4.4 # Post install/remove commands for Tazpkg. 4.5 post_install() 4.6 { 4.7 - for i in $(cd $1/lib/modules/*/kernel/fs/nls; ls nls*) fat vfat ; do 4.8 + for i in $(cd $1/lib/modules/*/kernel/fs/nls; ls nls* | sed 's|.ko$||') fat vfat ; do 4.9 grep -qs ^$i$ $1/modules || echo $i >> $1/modules 4.10 done 4.11 for i in vfat fat msdos ; do
5.1 --- a/x86test/receipt Wed Sep 20 13:08:44 2023 +0000 5.2 +++ b/x86test/receipt Wed Sep 20 13:53:13 2023 +0000 5.3 @@ -6,7 +6,9 @@ 5.4 SHORT_DESC="CPU failures detection tool." 5.5 MAINTAINER="pascal.bellard@slitaz.org" 5.6 LICENSE="GPL2" 5.7 -WEB_SITE="http://www.slitaz.org/" 5.8 +WEB_SITE="https://web.archive.org/web/20090327202227/http://www.vortex.prodigynet.co.uk/x86test/" 5.9 +#TARBALL="$PACKAGE-$VERSION.tar.bz2" 5.10 +#WGET_URL="https://web.archive.org/web/20080509064221/http://www.vortex.prodigynet.co.uk/x86test/$TARBALL" 5.11 TARGET="i486" 5.12 5.13 BUILD_DEPENDS="xz" 5.14 @@ -20,7 +22,7 @@ 5.15 sed "s|^#define PROP_$2 .*|#define PROP_$2 $3|" -i unlzma.S 5.16 shift 2 5.17 done 5.18 - for i in bootloader unpack ; do 5.19 + for i in bootloader unpack patch ; do 5.20 cc -o $i.o -Wa,-a=$i.lst -c $i.S 5.21 objcopy -O binary $i.o $i.bin 5.22 done 5.23 @@ -32,6 +34,8 @@ 5.24 { 5.25 mkdir -p $src && cd $src 5.26 tune_lzma 36,mf=bt2 PB 0 5.27 + test8086_88=$((0x$(sed '/test8086_88$/!d;s|.*text:0*||;s| .*||' patch.lst))) 5.28 + dd if=patch.bin bs=1 skip=$test8086_88 2> /dev/null | dd conv=notrunc of=x86test bs=1 seek=$((0xA00+$test8086_88)) 2> /dev/null 5.29 ./pack x86test x86test.packed 5.30 dd if=bootloader.bin of=x86test conv=notrunc 2> /dev/null 5.31 }
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/x86test/stuff/patch.S Wed Sep 20 13:53:13 2023 +0000 6.3 @@ -0,0 +1,39 @@ 6.4 + .code16 6.5 + 6.6 + .org 0xc3 6.7 +str_8086: .string "8086 (16-bit NMOS)" 6.8 +str_8088: .string "8088 (8-bit NMOS)" 6.9 +str_80C86: .string "80C86 (16-bit CMOS)" 6.10 +str_80C88: .string "80C88 (8-bit CMOS)" 6.11 +str_80186: .string "80186 (16-bit)" 6.12 +str_80188: .string "80188 (8-bit)" 6.13 +str_80286: .string "80286" 6.14 + 6.15 +test_width8_16: 6.16 + 6.17 + .org 0x18a 6.18 +test8086_88: 6.19 + pushf 6.20 + xorw %cx, %cx 6.21 + movw %cx, %es 6.22 + es movw 0x46c, %bx # BIOS tick count l.o. word 6.23 +1: pushw %cx 6.24 + sti 6.25 + rep cs lodsb 6.26 + cli 6.27 + orw %cx, %cx 6.28 + popw %cx 6.29 + movw $str_8088, %ax 6.30 + movw $str_8086, %si 6.31 + jnz nmos_8086_88 6.32 + movb $str_80C88, %al 6.33 + movw $str_80C86, %si 6.34 + es cmpw 0x046c, %bx 6.35 + loope 1b 6.36 +nmos_8086_88: popf 6.37 + call test_width8_16 6.38 + jz 1f 6.39 + xchgw %ax, %si 6.40 +1: ret 6.41 + 6.42 + .org 0x1bb