lukem
f85d2d1c14
Use ${HOST_SH} instead of `sh'.
...
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
bsh
fba8e3e432
add -DCPU_S3C{2800,2410} for board/sscom.c
2003-10-05 06:58:26 +00:00
mycroft
9b3ff19873
Whoops, reenable some stuff.
2003-09-03 03:19:04 +00:00
mycroft
7929022703
Add gzboot support for SMDK2410.
2003-09-03 03:18:30 +00:00
bsh
7fc9d147bb
gzboot for SMDK2800.
2003-07-30 18:54:18 +00:00
briggs
ed5f36a260
Deal with case where __data_store == _edata.
2003-07-22 04:57:24 +00:00
thorpej
eaf50189f3
Don't build a big-endian image on platforms which don't run big-endian.
2003-05-26 15:17:38 +00:00
thorpej
5f03eb91bb
Don't set the output format explicitly; let the linker use its defaults.
2003-05-26 15:07:53 +00:00
thorpej
d762fbd09d
Fix the name of the image.
2003-04-29 05:38:52 +00:00
thorpej
7733ffd60d
Make these images concatenating images.
2003-04-29 05:36:20 +00:00
thorpej
fb01afa9c7
Descend into the gzboot directories.
2003-04-29 05:35:08 +00:00
thorpej
8163f9a129
* Add ${PROGSYM} to CLEANFILES.
...
* Instsall either the .bin or the .sym, based on whether or not
the resulting gzboot needs to be mdsetimage'd.
2003-04-29 05:32:41 +00:00
thorpej
a8d10ed83c
Also build a flat binary version of the gzboot program.
2003-04-29 05:15:14 +00:00
thorpej
893a35a154
Bump version to 1.2 for the concatenation feature.
2003-04-29 05:05:41 +00:00
thorpej
00b159e3dc
Rename the IQ80310 directory to have all nibbles of the address in the name.
2003-04-29 05:04:37 +00:00
thorpej
04f47aa1d2
Allow MAXIMAGESIZE to be set to 0. For gzboot's that are linked
...
for flash, this allows us to basically do:
cat gzboot.bin netbsd.bin.gz > gzimg
to produce the bootable image.
2003-04-29 05:01:34 +00:00
thorpej
7a3fa51b7f
Garbage-collect the DYNAMIC_CRC_TABLE stuff. The table it computed
...
was incompatible with the new CRC code, and it is largely unnecessary
now, since the static table is so much smaller.
Fixes PR kern/20935.
2003-03-29 22:25:25 +00:00
thorpej
eb7195a019
Gzboot support for the ADI BRH eval board. This flash address allows
...
the kernel to be decompressed and started at board reset if the BRH's
rotary switch is set to position 5.
2003-03-25 23:38:00 +00:00
bjh21
d599df9587
Continue the " - . - 8" purge. Specifically:
...
add rd, pc, #foo - . - 8 -> adr rd, foo
ldr rd, [pc, #foo - . - 8] -> ldr rd, foo
Also, when saving the return address for a function pointer call, use
"mov lr, pc" just before the call unless the return address is somewhere
other than just after the call site.
Finally, a few obvious little micro-optimisations like using LDR directly
rather than ADR followed by LDR, and loading directly into PC rather than
bouncing via R0.
2002-10-14 22:32:50 +00:00
thorpej
6b4a2676fd
Give gzboot a 1M heap, so that loading gzip -9'd kernels works
...
reliably.
2002-04-25 22:30:38 +00:00
thorpej
1ca5e360be
Use LOADADDR() where appropriate.
2002-04-25 01:48:21 +00:00
thorpej
48774f52db
Add iq80321.c
2002-04-25 01:47:54 +00:00
thorpej
509fd84067
Add iq80310.c
2002-04-25 01:47:41 +00:00
thorpej
a7a582e392
* Call board_init() rather than mem_init() (board_init() will take
...
care of that for us).
* Call board_fini() right before jumping to the kernel entry point.
2002-04-17 17:38:58 +00:00
thorpej
49df0c927f
Lose -nbsd
2002-04-11 21:47:36 +00:00
thorpej
6cd0f2f79c
Add -nbsd to OUTPUT_FORMAT BFD target names.
2002-04-01 20:34:36 +00:00
thorpej
8345db18a3
Example gzboot config for the IQ80321.
2002-03-28 20:44:07 +00:00
thorpej
b5b0fd2467
Define CONADDR.
2002-03-28 20:41:45 +00:00
thorpej
20dd585980
Add RCS ID.
2002-03-02 22:29:40 +00:00
thorpej
c92241b420
Correct a comment.
2002-02-24 20:51:56 +00:00
thorpej
4af7d26f26
Fix a couple of comments.
2002-02-24 20:44:28 +00:00
thorpej
0a4bc3ccd5
This file is obsolete.
2002-02-24 20:32:40 +00:00
thorpej
39c165f331
Add support for relocating gzboot's .text out of flash and into
...
RAM (while still decompressing the image directly from flash).
This makes gzboot run a LOT faster.
2002-02-24 20:29:44 +00:00
thorpej
d819468d64
Improve zlib error reporting.
2002-02-24 18:36:29 +00:00
thorpej
0780eaaa32
Use bcopy() and bzero(), since the rest of libsa does. This means
...
we don't have to pull in memset() and memcpy() from libsa.
2002-02-23 20:48:14 +00:00
thorpej
59f1dfe1c2
Don't need to provide zcalloc() and zcfree(); there are such routines
...
in libz.
2002-02-23 20:34:41 +00:00
thorpej
524d248b59
Fix the -DRELOC=... CPP flag. Add -DDYNAMIC_CRC_TABLE to shrink
...
the text (and, thus, the space taken up in flash) a bit.
2002-02-23 20:19:52 +00:00
thorpej
a91d5a1a99
Example Makefile and linker script for building a run-from-flash
...
gzboot image for the IQ80310 with room for 2M of compressed data.
2002-02-23 19:16:54 +00:00
thorpej
c39065eb62
Add support for running directly out of flash:
...
* Require that the builder Makefile provide a linker script.
* After making sure the MMU is disabled, check to see if
_etext == __data_start. If not, then copy the .data contents
into RAM.
* Put the stack in .bss.
2002-02-23 18:19:09 +00:00
thorpej
87de164ab4
Fix a silly bug in the propellor spinning code.
2002-02-23 17:25:32 +00:00
thorpej
0fac1c42e9
gzboot -- boot a gzip'd kernel image. This is useful for booting
...
compressed kernel images from flash.
This needs more work, but is a good first-pass.
2002-02-23 05:41:14 +00:00