Commit graph

1135 commits

Author SHA1 Message Date
Uwe Hermann
bd5ca845e9 Run indent for util/lar/*. Cosmetic fixes in arch/x86/Makefile (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@235 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-10 16:31:02 +00:00
Uwe Hermann
88f2f6402a This is a major update to the lar archiver. It simplifies the build process and
is a base change to make the whole linuxbios.rom a lar file.

* fix a whole lot of lar bugs (that never showed up in production yet)
* add proper option parsing to lar
* add verbose option
* add option to automatically pad lar archive to a certain size
* add proper file handling (specifying a directory will now pack all files
  in that directory into the lar, instead of a 4k dummy file)
* catch lots of user errors, less implicit assumptions
* merge all header files into lib.h (except lar.h which is needed by other
  programs using the lar format). lib.h is still very small.
* print errors to stderr
* (slipped in) copy linuxbios.rom to bios.bin for qemu ;-)
* adapt arch/x86/Makefile to use the new features.
* set version to 0.9
* lots of security bugs fixed (thanks to Uwe!)
* catch low memory conditions in strdup

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@234 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-10 16:20:01 +00:00
Stefan Reinauer
6869f4a129 new device model from Ron
This tree shows the new model. It demonstrates the constructor array
in use, for devices that are and are not specified in the dts. It
introduces a new generic structure, device_id, analogous to
device_path, which can describe all the types of device IDs we have.
It shows a way to set up arrays of structs, in the dts, for the
constructors, so we avoid ldscript hacks.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@233 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-10 15:55:41 +00:00
Uwe Hermann
480c58f441 Drop dead code.
Purely cosmetic change in the license header of
mainboard/emulation/qemu-x86/initram.c.

Constify constant strings.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@232 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 16:05:03 +00:00
Uwe Hermann
2df5e3a407 Use 'unsigned int' instead of 'unsigned'.
Make udelay() use 'unsigned int' instead of 'int'.

Fix interface of log2(), the current implementation takes an
'unsigned int' and returns an 'int'.

Purely cosmetic fix in the license header (consistency reasons).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@231 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 16:02:58 +00:00
Uwe Hermann
9d63d2a039 Coding style fixes, mostly from running indent (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@230 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 13:24:46 +00:00
Uwe Hermann
53ef9a641c Document the origin of include/cpu/generic/x86/div64.h (trivial).
Update the file to the latest version from the Linux kernel (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@229 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 12:41:05 +00:00
Uwe Hermann
51c6cc420d Cosmetic fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@228 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 11:05:41 +00:00
Uwe Hermann
c0a20a2003 Coding style fixes, from running 'indent' (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@227 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 02:32:40 +00:00
Uwe Hermann
e0ae018002 Added some TODOs and fixed coding style issues and other cosmetic
issues (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@226 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 02:25:06 +00:00
Uwe Hermann
4448a95a55 The file lib/stage2.c is a complete rewrite from scratch and doesn't really
share any code with LinuxBIOSv2. Thus:

 * Update the copyright year for the code by Ron Minnich to 2007.

 * Add missing copyright line for the changes made by Stefan Reinauer.

 * Drop LANL text which is a left-over from V2 times and doesn't apply
   anymore here, as this is a complete rewrite.

Needs an ack by both, Ron and Stefan.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@225 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 02:13:49 +00:00
Uwe Hermann
b3f3126478 Consistently use 'printf' instead of 'echo' to print stuff to
the console.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@224 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-09 00:41:23 +00:00
Uwe Hermann
f3b09a4057 Sync device ID list for the EHCI Debug Port from the wiki,
http://linuxbios.org/EHCI_Debug_Port (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@223 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 23:57:58 +00:00
Stefan Reinauer
4f9c2185ae Sorry for breaking the code here. Changing it back
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@222 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 23:54:27 +00:00
Uwe Hermann
9485c81699 Rename CONSOLE_SERIAL_TAG to CONSOLE_PREFIX, as "prefix" is a clearer
name and the option is not only valid for the serial console.

Make CONSOLE_PREFIX an EXPERT option, as most people will not usually
change it.

Put the option under a "Cosmetic console options" subheading, as more
such options will probably follow...

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@221 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 23:28:58 +00:00
Uwe Hermann
7aea5bafcc Add missing license header to lib/Kconfig.
Update copyright years in lib/Makefile.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@220 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 22:55:32 +00:00
Stefan Reinauer
b83f5bbdcb Weird. Make header match c file.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@219 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 21:28:29 +00:00
Stefan Reinauer
395bfb562f cosmetic fixes.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>




git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@218 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 20:47:26 +00:00
Uwe Hermann
d15ee6da72 Document the origin and license of lib/clog2.c (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@217 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 20:17:55 +00:00
Stefan Reinauer
f2f0bda3c8 fix typos and add some obvious design goals.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@216 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 19:46:51 +00:00
Stefan Reinauer
9324ccd21c simplify (LB) tag code and add a config option for it.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@215 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 18:21:58 +00:00
Uwe Hermann
b9f2e7a509 Small cosmetic fix (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@214 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 15:13:07 +00:00
Uwe Hermann
59365cfb45 Update pci_ids.h to the latest version from the Linux kernel
(e81e557a8f1e22fab1b1bdc649ac0d24017ddce2).

We stripped all PCI vendor IDs and device IDs, as we will maintain
our own short list for LinuxBIOS (we don't need that many entries).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@213 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 13:57:20 +00:00
Uwe Hermann
4d52c1b047 Do not print the "(LB) " for the first line of LinuxBIOS output (looks
ugly because there are two \n\n before the "LinuxBIOS-3.0.0".

Some cosmetic fixeѕ (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@212 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 13:28:54 +00:00
Stefan Reinauer
97c886a70c fix archive size.
More cosmetical fixes to the output

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@211 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 01:09:04 +00:00
Stefan Reinauer
152fcb1949 Clean out temp hacks which we used in Brussels to get things working.
Cosmetical fixes to the output

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@210 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-08 00:55:46 +00:00
Uwe Hermann
aa01c41f42 A bunch of small cosmetic improvement of the printk() calls (trivial).
Add "(LB) " to all log messages to differentiate them visually
from the rest of the boot messages. This is similar to what
Xen does when booting (it prefixes all log messages with "(XEN) ").

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@209 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-07 21:07:13 +00:00
Stefan Reinauer
a8c461ba91 * correct off by one error in lib/lar.c
* correct LINUXBIOS_EXTRA_VERSION if it's empty in .config
* enable warnings for breaking strict aliasing

trivial.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@208 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-07 01:05:35 +00:00
Ronald G. Minnich
446979be46 This set of changes:
- makes sprintf work, in a re-entrant way
- gets rid of a lot of ugly debug stuff (thanks for the Kconfig log
  level stuff guys!)
- boots like a bat out of hell on qemu :-)

The changes are trivial, I am self-acking. 

To run this under qemu, I do this:

cp LinuxBIOSv3/build/linuxbios.rom bios.bin ;  qemu -nographic -L .
-kernel linux-2.6.15-bochs/vmlinux -hdc hda -hda hda | tee  out 2>&1

here is the output from a run. Note that cpu's still don't have a path
of any kind, and that show_all_devs is not working right. But we're
getting there. I think I'll next try to really boot a linux with a hard
drive, and see how it goes.


LinuxBIOS-3.0.0- Tue Mar  6 18:41:59 MST 2007 starting...
Start search at 0xfffc0000, size 258048
filename is normal/initram
start 0xfffc0000 len 0x3f000
fullname is normal/initram
RAM init code started
Nothing to do.Done ram init code
filename is normal/stage2
start (qemu) 0xfffc0000 len 0x3f000
fullname is normal/initram
fullname is normal/stage2
Phase 1: done
show all devs..
cpus: Unknown device path type: 0
Phase 2: Early setup...
Phase 2: Done.
show all devs..
cpus: Unknown device path type: 0
Phase 3: Enumerating buses...
qemu-x86 enable_dev done
dev_phase3_scan: scanning root(Root Device)
scan_static_bus for root(Root Device)
cpus: Unknown device path type: 0
i440bxemulation_enable_dev: 
i440bxemulation_enable_dev: Done.
dev_phase5: device0_0(PCI: 00:00.0) missing ops
domain0(PCI_DOMAIN: 0000) scanning...
dev_phase3_scan: scanning domain0(PCI_DOMAIN: 0000)
set_pci_ops: dev 00007aa0(device0_0) set ops to 00007220
set_pci_ops: dev 00007d80(dynamic PCI: 00:01.0) set ops to 00007220
set_pci_ops: dev 00008040(dynamic PCI: 00:01.1) set ops to 00007220
set_pci_ops: dev 00008300(dynamic PCI: 00:01.3) set ops to 00007220
set_pci_ops: dev 000085c0(dynamic PCI: 00:02.0) set ops to 00007220
set_pci_ops: dev 00008880(dynamic PCI: 00:03.0) set ops to 00007220
dev_phase3_scan: device0_0: busdevice 00007aa0 enabled 1 ops 00007220
dev_phase3_scan: can not scan from here, returning 0
dev_phase3_scan: dynamic PCI: 00:01.0: busdevice 00007d80 enabled 1 ops 00007220
dev_phase3_scan: can not scan from here, returning 0
dev_phase3_scan: dynamic PCI: 00:01.1: busdevice 00008040 enabled 1 ops 00007220
dev_phase3_scan: can not scan from here, returning 0
dev_phase3_scan: dynamic PCI: 00:01.3: busdevice 00008300 enabled 1 ops 00007220
dev_phase3_scan: can not scan from here, returning 0
dev_phase3_scan: dynamic PCI: 00:02.0: busdevice 000085c0 enabled 1 ops 00007220
dev_phase3_scan: can not scan from here, returning 0
dev_phase3_scan: dynamic PCI: 00:03.0: busdevice 00008880 enabled 1 ops 00007220
dev_phase3_scan: can not scan from here, returning 0
dev_phase3_scan: returning 0
scan_static_bus for root(Root Device) done
dev_phase3_scan: returning 0
Phase 3: Done.
show all devs..
cpus: Unknown device path type: 0
Phase 4: Allocating resources...
Phase 4: Reading resources...
cpus: Unknown device path type: 0
read_resources: cpus() missing phase4_read_resources
cpus: Unknown device path type: 0
read_resources: cpus() missing phase4_read_resources
Phase 4: Done reading resources.
Phase 4: Setting resources...
cpus: Unknown device path type: 0
read_resources: cpus() missing phase4_read_resources
cpus: Unknown device path type: 0
read_resources: cpus() missing phase4_read_resources
ram_resource: add ram resoource 33554432 bytes
Phase 4: Done setting resources.
Phase 4: Done allocating resources.
show all devs..
cpus: Unknown device path type: 0
Phase 5: Enabling resources...
cpus: Unknown device path type: 0
dev_phase5: cpus() missing ops
Phase 5: Done.
show all devs..
cpus: Unknown device path type: 0
Phase 6: Initializing devices...
Phase 6: Devices initialized.
show all devs..
cpus: Unknown device path type: 0
lb_memory_range: start 0x0 size 0x2000000
lb_cleanup_memory_ranges: # entries 1
  #0: base 0x0 size 0x2000000
lb_memory_range: start 0x0 size 0x500
lb_cleanup_memory_ranges: # entries 2
  #0: base 0x500 size 0x1fffb00
  #1: base 0x0 size 0x500
lb_memory_range: start 0xf0000 size 0x0
lb_cleanup_memory_ranges: # entries 4
  #0: base 0x0 size 0x500
  #1: base 0x500 size 0xefb00
  #2: base 0xf0000 size 0x1f10000
  #3: base 0xf0000 size 0x0
show all devs..
cpus: Unknown device path type: 0
Done stage2 code
filename is normal/payload
start 0xfffc0000 len 0x3f000
fullname is normal/initram
fullname is normal/stage2
fullname is normal/payload

Elfboot
set 00100000 to 0 for 137936 bytes
Copy to 00100000 from fffc6ef4 for 30472 bytes
set 00121ae0 to 0 for 72 bytes
Copy to 00121ae0 from fffce614 for 72 bytes
FILO version 0.5 (rminnich@q.ccstar.lanl.gov) Tue Mar  6 18:41:56 MST 2007
collect_sys_info: boot eax = 0xfe
collect_sys_info: boot ebx = 0xffffd444
collect_sys_info: boot arg = 0x1049c0
collect_sys_info: info->memrange 00000000
collect_linuxbios_info: Searching for LinuxBIOS tables...
find_lb_table: Found candidate at: 00000500
find_lb_table: header checksum o.k.
find_lb_table: table checksum o.k.
find_lb_table: record count o.k.
collect_linuxbios_info: collect_linuxbios_info: yes
collect_linuxbios_info: Found LinuxBIOS table at: 00000500
read_lbtable: read_lbtable begin
read_lbtable: lbrec tag 1 LB_TAG_MEMORY 1
convert_memmap: info->memrange 0x107740
convert_memmap: 0x00000000000000 0x000000000005a4 16
convert_memmap: 0x000000000005a4 0x000000000efa5c 1
convert_memmap: 0x000000000f0000 0x00000001f10000 1
convert_memmap: 0x000000000f0000 0x00000000000000 16
read_lbtable: lbrec tag 3 LB_TAG_MEMORY 1
read_lbtable: lbrec tag 4 LB_TAG_MEMORY 1
read_lbtable: read_lbtable end
collect_linuxbios_info: collect_linuxbios_info: done
collect_sys_info: after collect info->memrange 00107740
collect_sys_info: 00000000000005a4-00000000000f0000
collect_sys_info: 00000000000f0000-0000000002000000
collect_sys_info: RAM 32 MB
relocate: virt_offset is 0
relocate: Current location: 0x100000-0x121b27
relocate: Relocating to 0x1fde4d0-0x1fffff7... ok
setup_timers: CPU 599 MHz
Press <Enter> for default boot, or <Esc> for boot prompt... 2 1 timed out
boot: hda:/bzImage console=ttyS0,115200
malloc_diag: alloc: 0 bytes (0 blocks), free: 16376 bytes (1 blocks)
malloc_diag: alloc: 48 bytes (1 blocks), free: 16328 bytes (1 blocks)
malloc_diag: alloc: 64 bytes (2 blocks), free: 16312 bytes (1 blocks)
file_open: dev=hda, path=/bzImage
ide_software_reset: Waiting for ide0 to become ready for reset... ok
init_drive: Testing for hda
init_drive: Probing for hda
init_drive: LBA mode, sectors=32768
init_drive: LBA48 mode, sectors=32768
init_drive: Init device params... ok
hda: LBA48 16MB: QEMU HARDDISK                           
Mounted ext2fs
malloc_diag: alloc: 48 bytes (1 blocks), free: 16328 bytes (1 blocks)
elf_load: Not a bootable ELF image
malloc_diag: alloc: 64 bytes (2 blocks), free: 16312 bytes (1 blocks)
file_open: dev=hda, path=/bzImage
devopen: already open
malloc_diag: alloc: 48 bytes (1 blocks), free: 16328 bytes (1 blocks)
Found Linux version 2.6.15-geode (rminnich@q.ccstar.lanl.gov) #36 Sun Mar 4 22:20:47 MST 2007 (protocol 0x204) (loadflags 0x1) bzImage.
init_linux_params: Setting up paramters at 0x90000
set_memory_size: 00000000000005a4 - 00000000000f0000
set_memory_size: 00000000000f0000 - 0000000002000000
set_memory_size: ramtop=0x2000000
set_memory_size: ext_mem_k=31744, alt_mem_k=31744
parse_command_line: original command line: "console=ttyS0,115200"
parse_command_line: kernel command line at 0x91000
parse_command_line: kernel command line (20 bytes): "console=ttyS0,115200"
load_linux_kernel: offset=0x1600 addr=0x100000 size=0x1175e1
Loading kernel... ok
start_linux: eip=0x100000
Jumping to entry point...
Linux version 2.6.15-geode (rminnich@q.ccstar.lanl.gov) (gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)) #36 Sun Mar 4 22:20:47 MST 2007
BIOS-provided physical RAM map:
 BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
32MB LOWMEM available.
DMI not present.
Allocating PCI resources starting at 10000000 (gap: 02000000:fe000000)
Built 1 zonelists
Kernel command line: console=ttyS0,115200
Initializing CPU#0
PID hash table entries: 256 (order: 8, 4096 bytes)
Detected 1694.987 MHz processor.
Using pit for high-res timesource
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29752k/32768k available (1500k kernel code, 2628k reserved, 502k data, 144k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Mount-cache hash table entries: 512
CPU: L1 I cache: 8K
CPU: L2 cache: 128K
mtrr: v2.0 (20020519)
CPU: Intel Pentium II (Klamath) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
NET: Registered protocol family 16
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI quirk: region b100-b10f claimed by PIIX4 SMB
PCI: Ignore bogus resource 6 [0:0] of 0000:00:02.0
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
PCI: PIIX3: Enabling Passive Release on 0000:00:01.0
Limiting direct PCI/PCI transfers.
Activating ISA DMA hang workarounds.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16450
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
e100: Intel(R) PRO/100 Network Driver, 3.4.14-k4-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX3: IDE controller at PCI slot 0000:00:01.1
PIIX3: chipset revision 0
PIIX3: not 100% native mode: will probe irqs later
PIIX3: neither IDE port enabled (BIOS)
hda: QEMU HARDDISK, ATA DISK drive
hdc: QEMU HARDDISK, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 1024KiB
hda: 32768 sectors (16 MB) w/256KiB Cache, CHS=32/255/63
hda: set_multmode: status=0x41 { DriveReady Error }
hda: set_multmode: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hda: cache flushes supported
 hda: hda1
hdc: max request size: 1024KiB
hdc: 32768 sectors (16 MB) w/256KiB Cache, CHS=32/255/63
hdc: set_multmode: status=0x41 { DriveReady Error }
hdc: set_multmode: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdc: cache flushes supported
 hdc: hdc1
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
input: AT Raw Set 2 keyboard as /class/input/input0
input: ImExPS/2 Generic Explorer Mouse as /class/input/input1
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
VFS: Cannot open root device "<NULL>" or unknown-block(3,2)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2)
 

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@207 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-07 00:53:40 +00:00
Ronald G. Minnich
6f5301afb3 When zero'ing memory, zero the section MEMORY size, not the FILE size.
trivial fix. Linux now boots on BOTH bochs and qemu. 

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@206 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 21:44:40 +00:00
Stefan Reinauer
d8e330ef72 calculate LAR size dynamically from .config settings
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@205 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 15:43:34 +00:00
Uwe Hermann
cb997b0095 This adds the well-known defines to build.h.
It explicitly clears LANG for each call, so the date and version strings
all follow the C locale, instead of the user's locale settings.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@204 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 15:02:50 +00:00
Uwe Hermann
3acfef5b84 Update compute_ip_checksum.c and ip_checksum.h to the versions from
kexec-tools 1.101 (the current version).

Document the origin of the files in HACKING and in the files themselves.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@203 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 14:46:57 +00:00
Stefan Reinauer
273a9b4356 Fix some compiler warnings.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@202 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 12:46:32 +00:00
Uwe Hermann
a0c2a69ab0 Use common license header format (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@201 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 08:05:52 +00:00
Uwe Hermann
54bfbf97e5 Various cosmetic fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@200 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-06 05:08:31 +00:00
Uwe Hermann
474e9c7761 Move util/Doxyfile.LinuxBIOS to util/Doxyfile.LinuxBIOS, so that
everything in util/ has its own subdirectory (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@199 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 23:35:54 +00:00
Uwe Hermann
2b695fb8b6 Put output files into build/ instead of lbobj/ (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@198 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 23:24:36 +00:00
Uwe Hermann
fbbcbba172 Re-arrange Kconfig UI a bit for better readability (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@197 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 22:49:23 +00:00
Stefan Reinauer
d4266c0bd3 Do not hard-code the ROM chip size, but rather let the user choose
it via Kconfig (select box with some common values).

The default is 256 KB.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@196 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 22:22:54 +00:00
Stefan Reinauer
689a938ca6 Let 'make distclean' remove the .xcompile file if it exists (trivial).
The previous commit had a typo (xconfig instead of xcompile). I did that a
couple of times, too.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@195 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 22:10:01 +00:00
Uwe Hermann
42fbf747a4 Let 'make distclean' remove the .xconfig file if it exists (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@194 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 22:01:41 +00:00
Stefan Reinauer
ed26e22f02 fix warnings (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@193 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 22:01:28 +00:00
Uwe Hermann
022cd22f5d Various tiny cosmetic fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@192 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 21:34:08 +00:00
Ronald G. Minnich
b41e38e4a2 This is odd, but try again.
Comitting IP checksum code, and its usage in linuxbios table creation. 

Mods to the dts, so that the device ops for the domain are set to the
proper structure. This change is important. It gets rid of the obscure,
confusing use of the enable_dev function to pick the right ops for a
device. It makes the ops initilization very clear at the top level, in
the dts. This has been tested and works, linux boots on Bochs under
this version. 

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@191 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 21:29:45 +00:00
Uwe Hermann
ff7df4f7ad Add cross compilation support and simplify the far to complex serial
code (This goes hand in hand, as some parts of serial were hardcoded
to one architecture until now)

* include/uart8250.h: add TTYSx defines that are used in
  multiple places. formerly part of arch/x86/serial.c.
  Drop init_uart8250 (unused)
* lib/uart8250.c: drop arch/x86/config.h usage
  Drop init_uart8250 (unused)
* arch/powerpc/Kconfig, arch/x86/Kconfig: add CONFIG_ARCH to
  contain the directory name under LinuxBIOSv3/arch/
* arch/x86/console.c: drop some dead code. Drop hardcoded config.h values.
  use generic uart8250.h header
* arch/x86/cachemain.c: Drop hardcoded config.h values. Still use hardcoded
  ROM size for now. (To be changed later)
* arch/x86/config.h: dropped, no longer needed
* arch/x86/serial.c: factor out generically used defines to uart8250.h
* Makefile: use mainboard architecture instead of target architecture to choose
  include path.
  Read .xcompile if available (configure replacement).
  Create build.h with compile time and version.
* util/xcompile/xcompile: new file. Search for supported cross compilers
  linkers, assemblers (and potentially supported compiler flags etc)
  This is a very slick configure replacement.
* util/dtc/Makefile: fix Makefile for cross compilation

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@190 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 21:14:21 +00:00
Stefan Reinauer
4dac3a3dc2 - drop unused duplicate include/cpu/generic/x86/pci_ops.h
- fix ifdef in x86/arch/pci_ops.h
- fix function prototypes to match declarations in include/device/pci.h

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@189 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 17:53:45 +00:00
Uwe Hermann
730be6e12f Document version of elf.h we currently use. Add missing email
address (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@188 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 16:25:58 +00:00
Uwe Hermann
c2b74ca29a Update elf.h to CVS rev. 1.156 of the file from the GNU C Library.
This patch includes the LinuxBIOS-related modifications.

We do not remove any (probably unused) parts of the file anymore.
Sure, the file is bigger now, but a lot easier to diff against
the upstream source, which is more important.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@187 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 16:13:48 +00:00
Stefan Reinauer
ecca49722f SPEW-2 is INFO. Also fix GPL header in loglevel.h (cosmetical)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@186 f3766cd6-281f-0410-b1cd-43a5c92072e9
2007-03-05 12:28:25 +00:00