Annotation of /trunk/linterm_tools/fw_builder/createfw
Parent Directory | Revision Log
Revision 658 -
(hide annotations)
(download)
Mon Jan 14 16:57:24 2008 UTC (16 years, 8 months ago) by niro
File size: 1146 byte(s)
Mon Jan 14 16:57:24 2008 UTC (16 years, 8 months ago) by niro
File size: 1146 byte(s)
initial import
1 | niro | 658 | #!/bin/sh -e |
2 | |||
3 | # Get machine params from the original firmware | ||
4 | cd ./bundle-tools && ./extract_head.pl ../orig.wye | ||
5 | [ -e fwcs ] || make && cd ../ | ||
6 | cp ./bundle-tools/fwpack ./bin/ | ||
7 | |||
8 | # Copy the BIOS | ||
9 | [ -d ./temp ] || mkdir ./temp && cd temp && ../bundle-tools/fwextract ../orig.wye extract | ||
10 | if ! [ -e ???_code ]; then | ||
11 | echo 'Could not find a suitable BIOS file! (It should be called ..._code, where ...' | ||
12 | echo 'can be, for example, mid or leo.)' | ||
13 | exit 1 | ||
14 | fi | ||
15 | cp ???_code ../fwbase/ && cd .. | ||
16 | rm ./temp -R | ||
17 | |||
18 | # Create new firmware image | ||
19 | cd ./bundle-tools && make clean && cd .. | ||
20 | cd ./make-nk && make && cp boot make-nk ../bin/ && rm boot make-nk boot.o | ||
21 | cd .. | ||
22 | ## Not calling the initrd builder script here because we already ship with | ||
23 | ## a quick and minimal initrd (and this way we probably don't need root | ||
24 | ## permissions at all). | ||
25 | cp initrd.img.orig initrd.img | ||
26 | cd bootsplash && [ -e splash ] || make splash && ./splash -s -f Matrix/config/bootsplash-1024x768.cfg >> ../initrd.img | ||
27 | cd .. && cp bin/boot ./ | ||
28 | |||
29 | bin/make-nk -k bzImage -i initrd.img -vm 28672 | ||
30 | bin/fwpack linux.img fwbase/???_code nk.bin fwbase/poweron.bmp | ||
31 | |||
32 | # Cleanup | ||
33 | rm boot | ||
34 | mv linux.img ../ | ||
35 | rm nk.bin |
Properties
Name | Value |
---|---|
svn:executable | * |