Tiny Core Linux

General TC => General TC Talk => Topic started by: floppy on May 26, 2011, 11:54:27 AM

Title: (Workaround) How to upgrade syslinux of a USB-Stick?
Post by: floppy on May 26, 2011, 11:54:27 AM
Hello,
I have on an USB (in fact a CF on an USB-adapter; this CF card, can be connected to my PC via IDE-adapter, and is used in my canon powershot A70 for photos, too) with syslinux 3.87.
The latest syslinux ivailable  is 4.04.
How to upgrade (manually?) the syslinux of this (USB/CF-card) with 4.04?
Reason: I copied the menu.c32 of the 4.04 version on this USB/CF-card but the 3.87 syslinux is perhaps not working correctly (the menu is not appearing on my pc screen: it hangs up); so I would like to upgrade the syslinux of this CF-card.
Motivation: this CF card has TCL, MC, Knoppix, PartedMagic, memtest, hdt, Slitaz, Knoppix.. and I will use it for booting on different PCs when I am travelling.
Title: Re: How to upgrade syslinux of a USB-Stick?
Post by: Guy on May 26, 2011, 01:25:09 PM
4.04 may not work.

The one in the Tiny Core repository at present is 4.01. You could use it.

The first thing I would try, is installing syslinux in Tiny Core, and copying files you need from somewhere in /tmp/tcloop/syslinux.

Let us know if that works.
Title: Re: How to upgrade syslinux of a USB-Stick?
Post by: floppy on May 27, 2011, 06:05:09 AM
Hello,
in fact, I found out the usb stick had a syslinux 3.83 version.
So, I loaded the menu.c32 (after tar .. syslinux3.83.tar.gz) of the kernel.org.
And adapted my menu according the basis spec of the knoppix forum (see below, which I extended with tcl, mcl, magicparted, hdt, slitaz..).
Now it runs. So, my original issue is solved.

The menu.c32 syslinux file of the ver 4.04 had a compatibility issue with the syslinux 3.83?
or my menue entries were wrong built? Who knows. Dont know.
Sorry for not having tested an upgrade with the current TCE syslinux (the test was a bit too hot for me).

DEFAULT menu.c32
TIMEOUT 600
# TOTALTIMEOUT 20
KBDMAP german.kbd
PROMPT 0
MENU TITLE Knoppix Bootdisk
F1 boot.msg
F2 f2
F3 f3
LABEL adriane
MENU LABEL Adriane
KERNEL linux
APPEND ramdisk_size=100000 lang=de vt.default_utf8=0 apm=power-off vga=0x311 initrd=minirt.gz nomce quiet loglevel=0 tz=localtime adriane
LABEL knoppix
MENU LABEL Knoppix
MENU DEFAULT
KERNEL linux
APPEND ramdisk_size=100000 lang=de vt.default_utf8=0 apm=power-off vga=791 initrd=minirt.gz nomce quiet loglevel=0 tz=localtime
LABEL fb1024x768
MENU LABEL Framebuffer 1024x768
KERNEL linux
APPEND ramdisk_size=100000 lang=de vt.default_utf8=0 apm=power-off vga=791 xmodule=fbdev initrd=minirt.gz nomce quiet loglevel=0 tz=localtime
LABEL fb1280x1024
MENU LABEL Framebuffer 1280x1024
KERNEL linux
APPEND ramdisk_size=100000 lang=de vt.default_utf8=0 apm=power-off vga=794 xmodule=fbdev initrd=minirt.gz nomce quiet loglevel=0 tz=localtime
LABEL fb800x600
MENU LABEL Framebuffer 800x600
KERNEL linux
APPEND ramdisk_size=100000 lang=de vt.default_utf8=0 apm=power-off vga=788 xmodule=fbdev initrd=minirt.gz nomce quiet loglevel=0 tz=localtime
LABEL memtest
MENU LABEL Speichertest
KERNEL memtest
APPEND foo
LABEL dos
MENU LABEL FreeDOS
KERNEL memdisk
APPEND initrd=balder.img
LABEL failsafe
MENU LABEL Failsafe
KERNEL linux
APPEND ramdisk_size=100000 lang=de vt.default_utf8=0 vga=normal atapicd nosound noapic nolapic noacpi pnpbios=off acpi=off nofstab noscsi nodma noapm nousb nopcmcia nofirewire noagp nomce nonetwork nodhcp xmodule=vesa initrd=minirt.gz
Title: Re: (Workaround) How to upgrade syslinux of a USB-Stick?
Post by: curaga on May 29, 2011, 11:23:49 PM
Syslinux changed the extension api in 4.0 IIRC.
Title: Re: (Workaround) How to upgrade syslinux of a USB-Stick?
Post by: genec on June 05, 2011, 05:57:04 PM
Syslinux changed the extension api in 4.0 IIRC.

The COM32 extension binary format, yes.  At a source level, I believe there were no changes.  Behavior I've noticed is that a 4.xx module in 3.xx will often hardlock or reboot the machine while a 3.xx module in 4.xx will give an error about not being a COM32R format module.

http://syslinux.zytor.com/wiki/index.php/Common_Problems#Modules
Title: Re: (Workaround) How to upgrade syslinux of a USB-Stick?
Post by: grandma on May 07, 2012, 04:51:30 AM
Anyone know why syslinux says "/tmp/ Permissions " etc. and won't load