wok-current diff linux/stuff/bootloader.sh @ rev 5666

linux: include xhci-hcd,smsc*,ipheth,int51x1,vmxnet3 modules
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 30 12:03:29 2010 +0200 (2010-05-30)
parents 7798d8b688a9
children 85241294b8f8
line diff
     1.1 --- a/linux/stuff/bootloader.sh	Tue May 04 17:35:57 2010 +0200
     1.2 +++ b/linux/stuff/bootloader.sh	Sun May 30 12:03:29 2010 +0200
     1.3 @@ -39,10 +39,9 @@
     1.4  # usage: storelong offset data32 file
     1.5  storelong()
     1.6  {
     1.7 -	printf "00000  %02X %02X %02X %02X \n" \
     1.8 -		$(( $2 & 255 )) $(( ($2>>8) & 255 )) \
     1.9 -		$(( ($2>>16) & 255 )) $(( ($2>>24) & 255 )) | \
    1.10 -	hexdump -R | dd bs=1 conv=notrunc of=$3 seek=$(( $1 )) 2> /dev/null
    1.11 +	echo $2 | awk '{ printf "%c%c%c%c",$1%256,($1/256)%256,($1/256/256)%256,
    1.12 +					   ($1/256/256/256)%256 }' | \
    1.13 +	dd bs=1 conv=notrunc of=$3 seek=$(( $1 )) 2> /dev/null
    1.14  }
    1.15  
    1.16  # read a 32 bits data
    1.17 @@ -71,6 +70,7 @@
    1.18  	bs=/tmp/bs$$
    1.19  
    1.20  	# Get and patch boot sector
    1.21 +	# See http://hg.slitaz.org/wok/raw-file/tip/linux/stuff/linux-header-2.6.30.6.u
    1.22  	dd if=$KERNEL bs=512 count=1 of=$bs 2> /dev/null
    1.23  	uudecode <<EOT | dd of=$bs conv=notrunc 2> /dev/null
    1.24  begin-base64 644 -