Commit Graph

43024 Commits

Author SHA1 Message Date
François Revol
134ef79db0 U-Boot: add some sections to the ppc ldscript
* it seems ld creates most of them anyway, taken from the openfirmware script.
2012-05-24 21:20:14 +02:00
Alexander von Gluck IV
9b2efb1ad5 rPi Console: Fix console vt100 calls
* Use correct clear screen escape codes
* Use correct set cursor location escape codes
* Use correct set color escape codes
2012-05-24 06:39:43 -05:00
Alexander von Gluck IV
361ec26f10 rPi MMU: Cleanup, add gPeripheralBase
* gPeripheralBase keeps track of the device
  peripherals before and after mmu_init
* Add ability to disable mmu for troubleshooting
* Remove static FB_BASE, we actually don't know
  where the FB is yet. (depends on firmware used)
2012-05-24 06:39:43 -05:00
Alexander von Gluck IV
16307934fa rPi: Fix missing % 2012-05-24 06:39:42 -05:00
Fredrik Holmqvist
d6e724d549 Only set FT_LOAD_TARGET_LCD when we have specified it. Use FT_LOAD_TARGET_NORMAL when we havn't.
(FT_LOAD_TARGET_LIGHT might also be an option.)
2012-05-23 20:30:27 +02:00
Pawel Dziepak
021ccbd18f Fix #8596: common_getgroups copies too little data
common_getgroups, when called from within the kernel, copies actualCount
bytes instead of actualCount * sizeof(gid_t) bytes.
2012-05-23 12:56:10 -04:00
Alexander von Gluck IV
4fd190af6e MMU: Add in section L1 MMU size
* Not used atm, but exists.
2012-05-22 09:07:29 -05:00
Alexander von Gluck IV
f0ba7f9400 MMU: Clean up arm L1 MMU types
* Include map for each page table type
* Reduce MMU_TYPE define name length
2012-05-22 08:30:52 -05:00
Alexander von Gluck IV
9c5e60f656 rPi MMU: Fixes to hrev44189
* I had the wrong addresses, 0x20 was the physical
  address not a mapped one.
* Attempt to map uart in mmu post mmu_init.
2012-05-22 08:30:52 -05:00
Matt Madia
87a01ad64e Added Caya as an optional package.
Provided by Barrett. Fixes #7439.
2012-05-20 14:31:11 +00:00
Matt Madia
96e2080d5e Updated Keymap Switcher. Provided by Siarzhuk Zharski. 2012-05-20 10:23:08 +00:00
Siarzhuk Zharski
5f25cf08b3 Put hostname option into DHCPDISCOVER/DHCPREQUEST if provided by system
If Haiku has the hostname set, inform DHCP server with corresponding
option in DHCPDISCOVER and DHCPREQUEST messages. That should simplify
accessing Haiku hosts by using it's hostname instead of raw addresses.
2012-05-20 12:46:58 +02:00
Humdinger
0ae4e1b785 Added wpa_supplicant to alpha and nightly profiles. Fixes #8585. 2012-05-19 18:25:55 +02:00
Alexander von Gluck IV
b8733e36c7 rPi MMU: Working towards mapped memory
* BCM2708 defines no longer assume 0x20 address
  We will be throwing away the blob memory mapping
  and using our own.
* Use existing blob mapping to turn GPIO led on pre mmu_init
* Remap MMU hardware addresses from 0x7E. We could map each device,
  however the kernel will throw away the mappings again anyway. For
  now we just map the whole range and use offsets.
* Serial uart no longer works, however at least
  we know why now :). Serial driver now needs to
  use mapped address.
2012-05-18 10:16:30 -05:00
Siarzhuk Zharski
80cbddc9f7 Preventive fixes for possible Coverity complaints in the future. 2012-05-18 22:23:45 +02:00
Siarzhuk Zharski
34e730c8fa Fixes for Coverity CIDs 702013,702014,702015,702016,702017.
Satisfying Coverity for case of resource leak in case open() returns
file descriptor equal to 0.
2012-05-18 22:22:10 +02:00
Alexander von Gluck IV
e8aa6be532 rPi MMU: Enhance debugging
* TRACE calls no longer need double '('
* Added CALLED trace function
* Add better debugging output
2012-05-18 08:57:00 -05:00
Alexander von Gluck IV
249e5492c1 ARM MMU: Use MRC vs MCR for TTBR
* Verified to use MRC vs MCR multiple locations
* Small bit of style cleanup as well
* Better comment function usage
2012-05-18 08:57:00 -05:00
Humdinger
7a81151b1b Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-05-18 19:40:29 +02:00
Humdinger
a7bee8e40c Corrected typo correction... thanks Starseed. /me needs glasses. 2012-05-18 19:39:49 +02:00
Humdinger
268816a3ce Corrected typo. Fixes #8557. 2012-05-18 18:20:49 +02:00
Humdinger
761dac127b Small layout changes to FileType add-on panel. Fixes #8581. 2012-05-18 18:19:36 +02:00
Alexander von Gluck IV
77591e9657 rPi: MMU Work
* Use U-Boot mmu code as base
* This will be factored out someday into common arch mmu
  code when we can read Flattened Device Trees
* Move mmu_init after serial_init.
  Temporary change as we will want serial_init to use
  memory mapped addresses... for debugging.
2012-05-18 06:36:53 -05:00
Alexander von Gluck IV
6d4270e3ce U-Boot mmu: Style cleanup, no functional change 2012-05-18 06:36:52 -05:00
Alexander von Gluck IV
8b99a08215 rPi: Fix Raspberry Pi binaries
* Since mmu_man fixed these vars to actually be used,
  we now know these floating point flags cause issues
  on the Raspberry Pi currently.
2012-05-18 04:05:33 -05:00
François Revol
55cf6de91b Fix passing flags from BoardSetup
* since we include BoardSetup earlier now, the TARGET_* flags were discarded. Use HAIKU_* instead.
* Add variables to hold the default entry point and the desired uimage OS emulation.
2012-05-18 01:22:50 +02:00
Fredrik Holmqvist
7ca2da76f0 rand() is used, but srand() was never called. 2012-05-18 00:01:12 +02:00
François Revol
61d7e75709 U-Boot ppc: Add missing sections to ldscript
* it seems we missed some sections that exist on ppc, add them.
* resulting binary runs a little further in QEMU but still screws up.
2012-05-17 23:52:35 +02:00
François Revol
b011337e20 U-Boot: save passed FDT and call common code
* should work better this way :D
2012-05-17 20:46:46 +02:00
François Revol
de1c936185 U-Boot: include board name in uimage header
* for clarity, include the board in the uimage name field, it's long enough.
2012-05-17 19:55:27 +02:00
François Revol
7663f51c66 U-Boot: Fix ppc build
* we have an uimage for the Sam460 \o/
2012-05-17 19:41:19 +02:00
François Revol
e02218f140 Cleanup 2012-05-17 19:40:26 +02:00
François Revol
7e53f7bdc3 U-Boot: fix the guards
* mmu_init*() are used by cpu.cpp
2012-05-17 19:24:11 +02:00
François Revol
4ab5d2f998 U-Boot: Add a ppc ldscript
* mostly copied from the ARM one
2012-05-17 19:15:58 +02:00
François Revol
386671b4d0 U-Boot: Guard ARM-specific stuff
* those must be cleaned up and moved away
* allows building U-Boot loader for ppc
2012-05-17 19:10:10 +02:00
Alexander von Gluck IV
3d4f1347fe U-Boot: Re-disable MMU tracing 2012-05-17 06:05:06 -05:00
Alexander von Gluck IV
82e19983b4 u-boot mmu: Style cleanup, no functional change 2012-05-17 05:58:31 -05:00
François Revol
f5759f2e99 U-Boot: Add a Linux-type loader target
* those should be cleaned up. BoardSetup should tell which OS type to emulate.
2012-05-17 18:44:11 +02:00
François Revol
f4bd3cda32 U-Boot: Fix comments and ppc build
* those are not ARM-specific.
* this asm code doesn't build for ppc, and is not really useful for ARM either.
2012-05-17 18:27:49 +02:00
Alexander von Gluck IV
1f675a7fcb uart: Fix arm kernel build
* Make kernel use mmu_man's new UART code
* Remove no longer used uart.cpp / uart.h
2012-05-17 05:32:29 -05:00
François Revol
693b3532c7 Sam460ex: Add a Linux-type kernel entry point
* the onboard U-Booot and 2nd-stage loader only know a few OS types,
we'll try faking Linux there.
2012-05-17 17:36:19 +02:00
François Revol
d86473dfb9 Cleanup U-Boot global data struct
* there are only a few members we can really rely on, the rest is compile-time dependant.
* don't use ARM-specific stuff.
2012-05-17 17:25:49 +02:00
Alexander von Gluck IV
eb93f2661d uart: Style Cleanup, no functional change 2012-05-17 03:31:02 -05:00
Alexander von Gluck IV
182643f763 uart: Remove due to mmu's new (better) UART code 2012-05-17 03:15:56 -05:00
François Revol
e9ec7a55dd Attempt to factor out serial stuff
* introduce a DebugUART baseclass,
* rework 8250 and PL011 implementations from kallisti5 to inherit DebutUART,
* each arch should override the IO methods to access registers.
* on ARM registers are 32bit-aligned.
* U-Boot still works for the verdex target.
* rPi still compiles, needs testing.
* Still some more consolidation needed to allow runtime choice of the UART type (as read from FDT blobs for ex.).
* serial.cpp should probably mostly be made generic as well.
* didn't touch x86 or ppc yet.
2012-05-17 04:09:05 +02:00
Alexander von Gluck IV
08a1406831 rpi: Remove firmware blobs
* Pi firmware was updated to note that Broadcom
  had to be included with firmware blobs.
* While we have permission from Eben to have the
  blobs in-tree, they are now offically on github
  in a fixed location removing the need to have
  these in-tree.
* Clean up BoardConfig, note firmware URL and
  files needed
* Update info.txt with how Haiku boot process works
2012-05-16 08:03:35 -05:00
Alexander von Gluck IV
d0f5524676 rpi: Wait for keypress on panic
* Cleanup serial shutdown process
2012-05-16 06:25:13 -05:00
Alexander von Gluck IV
4747ee6ea8 pl011 uart: Complete function to get a character 2012-05-16 06:01:51 -05:00
Alexander von Gluck IV
ce077d96cb rpi: Flush serial on cleanup
* Wait for transmit fifo to empty on serial cleanup
* Serial cleanup on platform exit
2012-05-16 04:50:29 -05:00
Alexander von Gluck IV
91161d1d6f pl011 uart: Fix fifo states
* Lets wait for space *before* writing to the fifo
  instead of after.
* Flush functions now really flush the fifo waiting
  for them to enter an empty state.
* Simple memory barriers added (may need revised)
  We don't have access to the kernel barriers here.
2012-05-16 04:47:24 -05:00