wok annotate linld/stuff/linld.txt @ rev 21822

Remove unused kernel cmdline args root=/dev/null
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 18:00:45 2019 +0200 (2019-08-25)
parents 23fc786c04e8
children 3d63943ab632
rev   line source
slaxemulator@9309 1 Linld 0.97
slaxemulator@9309 2
slaxemulator@9309 3 Linld is a Linux loader for DOS. I wrote it when loadlin failed to load newer
slaxemulator@9309 4 kernel for me and I found loadlin source to bee too big and complex to fix.
slaxemulator@9309 5
slaxemulator@9309 6 So I just wrote a repacement.
slaxemulator@9309 7
slaxemulator@9309 8 Build instructions
slaxemulator@9309 9 ------------------
slaxemulator@9309 10 You need a DOS/Windows machine. Download linld097devel.tar.bz2,
slaxemulator@9309 11 unpack it, cd DIST/LINLD097 and run !COMPILE.BAT
slaxemulator@9309 12
slaxemulator@9309 13 Usage
slaxemulator@9309 14 -----
slaxemulator@9309 15
slaxemulator@9309 16 LINLD [image=<file>] [initrd=<file>] [vga=vgamode] [cl=<kernel cmdline>]
slaxemulator@9309 17 vgamode: ask,extended,normal or dec/oct/hex number
slaxemulator@9309 18 Defaults:
slaxemulator@9309 19 image=bzImage
slaxemulator@9309 20 initrd=(nothing)
slaxemulator@9309 21 cl=auto
slaxemulator@9309 22 vga=0
slaxemulator@9309 23 Use quotes: "cl=..." if you need spaces in cmdline
slaxemulator@9309 24 Use cl=@filename to take cmdline from file
slaxemulator@9309 25
slaxemulator@9309 26 Acknowledgements
slaxemulator@9309 27 ----------------
slaxemulator@9309 28 Lots of code was borrowed from loadlin source
slaxemulator@9309 29 (author of loadlin is Hans Lermen <lermen@elserv.ffm.fgan.de>).
slaxemulator@9309 30 Some code from linux kernel (setup.S) was used too.
slaxemulator@9309 31 Thank you guys!
slaxemulator@9309 32
slaxemulator@9309 33 Changelog
slaxemulator@9309 34 ---------
slaxemulator@9309 35 0.91 Added support for cl=@filename
slaxemulator@9309 36 0.92 VCPI voodoo magic: booting under EMM386 and foes :-)
slaxemulator@9309 37 0.93 Cleanup. cl=@filename: cr/lf will be converted to two spaces
slaxemulator@9309 38 0.94 Ugly workaround for DOS int 15 fn 88 breakage
slaxemulator@9309 39 0.95 Bug squashed: vga=NNN did not like dec numbers, oct/hex only
slaxemulator@9309 40 Some VCPI comments added
slaxemulator@9309 41 0.96 Do not lowercase entire command line
slaxemulator@9309 42 0.97 memtop() must be rounded down to page boundary
pascal@19580 43
pascal@19580 44 SliTaz patches
pascal@19580 45 --------------
pascal@19580 46 New command line arguments:
pascal@19580 47 -f force. Do not ask memory manager for allocation
pascal@19580 48 -b base lower buffer address, default 1088k
pascal@19580 49 root number root filesystem device
pascal@19580 50 mem number higher memory address, default 256m
pascal@19580 51
pascal@19580 52 Every arguments can be stored in a separate file and load with @filename, i.e
pascal@19580 53 > linld @args.cmd
pascal@19580 54
pascal@19580 55 The -f and -b are useful skip XMM (max 64M ?) and VCPI (max 32M ?) limits:
pascal@21822 56 > linld -f -b 64m initrd=rootfs4.gz,rootfs3.gz,rootfs2.gz,rootfs1.gz "cl=video=-32"