* [PATCH 0/3] powerpc: Instrument Hypervisor Calls: add sysfs files
From: Dave C Boutcher @ 2006-06-14 14:30 UTC (permalink / raw)
To: Mike Kravetz; +Cc: Bryan Rosenburg, linuxppc-dev, Christopher Yeoh
In-Reply-To: <20060614035420.GD6759@monkey.ibm.com>
On Tue, 13 Jun 2006 20:54:20 -0700, Mike Kravetz <kravetz@us.ibm.com> said:
>
> Make statistics available via files in sysfs.
> --
> Signed-off-by: Mike Kravetz <kravetz@us.ibm.com>
>
>
> diff -Naupr linux-2.6.17-rc6/arch/powerpc/kernel/sysfs.c linux-2.6.17-rc6.work/arch/powerpc/kernel/sysfs.c
> --- linux-2.6.17-rc6/arch/powerpc/kernel/sysfs.c 2006-06-06 00:57:02.000000000 +0000
> +++ linux-2.6.17-rc6.work/arch/powerpc/kernel/sysfs.c 2006-06-13 21:42:32.000000000 +0000
> @@ -356,6 +356,39 @@ static ssize_t show_physical_id(struct s
> }
> static SYSDEV_ATTR(physical_id, 0444, show_physical_id, NULL);
>
> +#ifdef CONFIG_HCALL_STATS
> +DECLARE_PER_CPU(struct hcall_stats[MAX_HCALL_OPCODES+1], hcall_stats);
> +
> +static ssize_t show_hcall_stats(struct sys_device *dev, char *buf)
> +{
> + struct cpu *cpu = container_of(dev, struct cpu, sysdev);
> + struct hcall_stats *hs = per_cpu(hcall_stats, cpu->sysdev.id);
> + size_t rc = 0;
> + size_t b_written = 0;
> + size_t b_remain = PAGE_SIZE;
> + unsigned long i;
> +
> + for (i=0; i<MAX_HCALL_OPCODES+1; i++){
> + if (!hs[i].num_calls)
> + continue;
> +
> + b_written = snprintf(buf+rc, b_remain,
> + "%lu %lu %lu\n",
> + i<<2, hs[i].num_calls, hs[i].total_time);
> +
> + if (b_written >= b_remain)
> + break; /* end of buffer */
> +
> + rc += b_written;
> + b_remain -= b_written;
> + }
> +
> + return rc;
> +}
> +
You're violating the "one value per file" rule for sysfs. Ware the
wrath of Greg KH.
Dave B
^ permalink raw reply
* Re: [PATCH 5/10 v2] Add 8641 CPU and i8259 Setup
From: Jon Loeliger @ 2006-06-14 15:54 UTC (permalink / raw)
To: linuxppc-dev@ozlabs.org
In-Reply-To: <E1FojUI-0004N5-E7@jdl.com>
On Fri, 2006-06-09 at 11:05, Jon Loeliger wrote:
> > > + bl clear_bats
> > > bl load_up_mmu
> >
> > Why do you need to call clear_bats here ? load_up_mmu should load BATs.
> > If it doesn't handle the high BATs, then fix it :)
Ben,
This line item has finally come around on the guitar!
And I have a question for you...
How come this additional clear_bats call isn't seen
as a generic fix? It is possible that the bootloader
has left some crufty (high) BATs hanging around.
Or are you suggesting just adding something like:
li r10, 0
mtspr SPRN_DBATxU,r10
mtspr SPRN_DBATxL,r10
for x in (4 .. 7) to the tail end of load_up_mmu as
the general fix?
Thanks,
jdl
^ permalink raw reply
* RE: OpenFirmware framebuffer
From: Matt Sealey @ 2006-06-14 16:02 UTC (permalink / raw)
To: 'Benjamin Herrenschmidt'; +Cc: linuxppc-dev, 'Nathan Lynch'
In-Reply-To: <1150295351.5874.5.camel@localhost.localdomain>
Ben,
Please talk to Sven for a version, he is best to make sure you get something
that doesn't explode something you both know is important :)
--
Matt Sealey <matt@genesi-usa.com>
Manager, Genesi, Developer Relations
> -----Original Message-----
> From: Benjamin Herrenschmidt [mailto:benh@kernel.crashing.org]
>
> Better, send me a firmware image and I'll check what's up on
> my pegasos :)
^ permalink raw reply
* board initialization problem
From: Om Vadlapatla @ 2006-06-14 16:40 UTC (permalink / raw)
To: linuxppc-embedded@ozlabs.org, U-Boot-Users@lists.sourceforge.net
[-- Attachment #1: Type: text/plain, Size: 2344 bytes --]
K0: Original Montavista kernel
K1: Kernel without D-cache Adapted for 4x60(SDH 2/6
ch)
K2: Kernel with D-cache enabled for 4160 (SDH 6 ch)
Difference between K1 & K2:
1. D-cache (~/kernel2.4.17/arch/ppc/kernel/head.S)
here only one line difference.
2. Page table & cache buffer allocation
(~/kernel2.4.17/arch/ppc/8260_io/comproc.c)
I can send the difference only 4 lines only setting
the buffer arrays.
Target: 4160 (compat SDH unit)
Abatron: Jtag Debugger
fw4x60.cfg: old config file for Abatron
fw8270.cfg: new config file for Abatron
The tests tried using U-BOOT:
1. Loaded K1 onto target independent of Abatron
2. Loaded K2 onto target with Abatron fw8270.cfg
ran busy looptest for K1 & K2 result: K2 40 times
faster
3. Tried to load K2 to target without Abatron result:
Failed
Conclusions & comments:
There are significant differences between fw4x60.cfg &
fw8270.cfg.
These differences need to be incorporated in the new
Kernel (OR I am not sure about it but may be into the
Boot-loader).
Core Initialization file in kernel:
~/kernel2.4.17/arch/ppc/kernel/head.S
Speculated changes:
~/kernel2.4.17/arch/ppc/8260_io/comproc.c
It was speculated that the cached buffers triggered
the exception. And commproc.c was modified to make
those buffers uncacheable. But that made things worse:
invalidate_dcache_range() and flush_tlb_page() cause
another exception to occur (not identified).
U-boot initialization files:
~/u-boot/cpu/mpc8260
start.S, cpu_init.c
Both these files in u-boot are meant to initialize
the core & MMU.
If the config changes need to go into the kernel I am
not sure if it is the head.S file.
If the config changes need to go into the boot loader
I am not sure while the kernel opperates if there will
be any unpredictable behaviour.
Irrespective of where the changes go, the main task is
to analize each difference between fw4x60.cfg &
fw8270.cfg and develope the initialization code.
If any one has another plan of action please let me
know, I appreciate guidance.
Attached are the two config files.
Sincerely,
Om Vadlapatla
PS:- All I need is to load the new kernel with out a
glitch coz I can do it with the Abatron pluged in.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: 1384370366-fw4x60.cfg.txt --]
[-- Type: text/plain, Size: 5839 bytes --]
; -----------------------------------------------------------------------------
; Abatron bdiGDB configuration file for the FW4X60 platform
; single board computer running MontaVista Linux.
;
; The physical memory map is as follows:
; 0x00000000 - 0x0FFFFFFF 256MB 60x SDRAM on CS1 and CS2
; 0x30000000 - 0x33FFFFFF 64MB local SDRAM on CS5
; 0x40000000 - 0x41FFFFFF 32MB FPGA on CS6
; 0x50000000 - 0x50FFFFFF 16MB RTC on CS7
; 0x80000000 - 0x80007FFF 32KB IDE on CS9
; 0xF0000000 - 0xF001FFFF 128KB MPC8260 internal memory
; 0xFFE00000 - 0xFFFFFFFF 2MB Flash on CS0
; -----------------------------------------------------------------------------
;
[INIT]
WM32 0x000101A8 0xF0000000 ; IMMR (relocate internal memory)
WREG MSR 0x00000000 ; clear MSR
;WM32 0xF0010000 0x0A200000 ; SIUMCR
WM32 0xF0010004 0xFFFFFFC3 ; SYPCR (no watchdog)
WM32 0xF0010C80 0x00000001 ; SCCR
WM32 0xF0010024 0x80808000 ; BCR
WM8 0xF0010028 0x26 ; PPC_ACR:
WM32 0xF0010040 0x00004000 ; TESCR1:
WM32 0xF0010048 0x00004000 ; L_TESCR1:
;
;
; Memory controller
WM32 0xF0010104 0xFF000C54 ; OR0
WM32 0xF0010100 0xFF001001 ; BR0
;WM32 0xF0010100 0xFFE01001 ; BR0
;WM32 0xF0010104 0xFFE00844 ; OR0
WM32 0xF0010134 0xFE000008 ; OR6 FPGA
WM32 0xF0010130 0x40001001 ; BR6
WM32 0xF001013C 0xFF000C0C ; OR7 RTC
WM32 0xF0010138 0x50001001 ; BR7
WM32 0xF001014C 0xFFFF8008 ; OR9 IDE
WM32 0xF0010148 0x80001001 ; BR9
;
;
; Initialize the SDRAM on the 60x bus.
;
WM32 0xF001010C 0xF8002B00 ; OR1
WM32 0xF0010108 0x00000049 ; BR1
WM32 0xF0010114 0xF8002B00 ; OR2
WM32 0xF0010110 0x08000049 ; BR2
WM16 0xF0010184 0x4000 ; MPTPR
WM8 0xF001019C 0x7 ; PSRT
WM32 0xF0010190 0xAAAE245E ; PSDMR: Precharge all banks
WM8 0x00000000 0xFF ; Access SDRAM
WM32 0xF0010190 0x8AAE245E ; PSDMR: CBR Refresh
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM8 0x00000000 0xFF ; Access SDRAM
WM32 0xF0010190 0x9AAE245E ; PSDMR: Mode Register Write
WM8 0x00000000 0xFF ; Access SDRAM
WM32 0xF0010190 0xC2AE245E ; PSDMR: Normal operation and refresh enable
;
; Initialize the SDRAM on the local bus.
;
WM32 0xF001012C 0xFC002D00 ; OR5
WM32 0xF0010128 0x30001861 ; BR5
WM8 0xF00101A4 0x7 ; LSRT
WM32 0xF0010194 0xAA6A2556 ; LSDMR: Precharge all banks
WM8 0x30000000 0xFF ; Access SDRAM
WM32 0xF0010194 0x8A6A2556 ; LSDMR: CBR Refresh
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM8 0x30000000 0xFF ; Access SDRAM
WM32 0xF0010194 0x9A6A2556 ; LSDMR: Mode Register Write
WM8 0x30000000 0xFF ; Access SDRAM
WM32 0xF0010194 0xC26A2556 ; LSDMR: Normal operation and refresh enable
;
WM16 0x50800206 0x2000 ; Disable flash write protection
;
;
[TARGET]
CPUTYPE 8270 ; 603EV, 750, 8240, 8260, 750CX, or 7400
BDIMODE AGENT ; LOADONLY or AGENT
STARTUP RESET ; RESET, STOP, or RUN
JTAGCLOCK 3 ; 0=16.6MHz, 1=8.3MHz, 2=5.5MHz, 3=4.1MHz
BOOTADDR 0xFFF00100 ; 0xFFF00100 or 0x00000100
WORKSPACE 0x00000000 ; use SDRAM for 256 byte workspace
BREAKMODE HARD ; SOFT or HARD
VECTOR CATCH ; catch unhandled exceptions
DCACHE NOFLUSH ; FLUSH or NOFLUSH
POWERUP 3000
WAKEUP 3000
MMU XLAT 0xC0000000 ; kernel virtual base address
PTBASE 0x000000F0 ; address of page table pointer array
SIO 7 9600
;
;
;
[FLASH]
CHIPTYPE AM29BX16 ; AM29F, AM29BX8, AM29BX16, I28BX8, I28BX16,
; AT49, AT49X8, AT49X16, STRATAX8, STRATAX16
CHIPSIZE 0x200000 ; size of one flash chip in bytes
BUSWIDTH 16 ; flash bus width (8, 16, 32, or 64)
WORKSPACE 0xF0000000 ; use MPC8270 internal RAM for 2KB workspace
ERASE 0xFFE00000 CHIP ; erase entire Flash SIMM
;
;
;
[HOST]
IP 172.30.10.7 ; IP address of tftp server
FILE vmlinuz-est-sbc8260
FORMAT IMAGE 0x0 ; SREC, BIN, AOUT, ELF, IMAGE, or ROM
LOAD MANUAL ; MANUAL or AUTO
DEBUGPORT 2001 ; TCP port number for GDB
PROMPT FW4X60> ; Telnet prompt string
DUMP dump.bin ; default filename for DUMP command
;
;
;
[REGS]
DMM1 0xF0000000
FILE abatron/reg8260.def
[-- Attachment #3: 1432833698-FW8270.CFG --]
[-- Type: application/octet-stream, Size: 6635 bytes --]
; bdiGDB configuration file for MPC8270
; -----------------------------------------------
;
[INIT]
; init core register(MASTER)
WREG MSR 0x00000000 ;clear MSR
;WM32 0xF00101A8 0xF0000000 ;IMMR : internal space @ 0xF0000000
WM32 0xF0010004 0xFFFFFFC3 ;SYPCR: disable watchdog
WM32 0xF0010024 0x80800000 ;BCR:
WM8 0xF0010028 0x26 ;PPC_ACR:
WM32 0xF0010040 0x00004000 ;TESCR1:
WM32 0xF0010048 0x00004000 ;L_TESCR1:
;WM32 0xF0010C80 0x00000001 ;SCCR : normal operation
; init memory controller(master)
WM32 0xF0010104 0xFFE00C54 ;OR0: Flash 2MB, CS early negate, 5 w.s., Timing relax
WM32 0xF0010100 0xFFE01001 ;BR0: Flash @0xFF000000, 16bit, no parity
WM32 0xF001010C 0xF8002B00 ;OR1: 128MBYTE
WM32 0xF0010108 0x00000041 ;BR1: 60x-BUS
WM32 0xF0010114 0xF8002B00 ;OR2: 128MBYTE riki chg fc->f8
WM32 0xF0010110 0x08000041 ;BR2: 60x-BUS
;WM32 0xF001011C 0x00000000 ;OR3: 64MBYTE
;WM32 0xF0010118 0x00000000 ;BR3: 60x-BUS
WM32 0xF001012C 0xFC002F00 ;OR5: 64MBYTE
WM32 0xF0010128 0x30001861 ;BR5: LOCAL-BUS
WM32 0xF0010134 0xFC000008 ;OR6: MAINI-O
WM32 0xF0010130 0x40001001 ;BR6: 60x-BUS
WM32 0xF001013C 0xFF000C0C ;OR7: FPGA-IO
WM32 0xF0010138 0x50001001 ;BR7: 4MBYTE
;WM32 0xF0010144 0xFFFC0100 ;OR8: FUMEI-napa
;WM32 0xF0010140 0x58001081 ;BR8: FUMEI-napa
WM32 0xF001014C 0xFFFF0008 ;OR9: C-FLASH
WM32 0xF0010148 0x80001001 ;BR9: 60x-BUS
; init core register(SLAVE)
;WREG MSR 0x00000000 ;clear MSR
;WM32 0xFF0101A8 0xFF000000 ;IMMR : internal space @ 0xF0000000
WM32 0xFF010004 0xFFFFFFC3 ;SYPCR: disable watchdog
WM32 0xFF010024 0x80800000 ;BCR:
WM8 0xFF010028 0x27 ;PPC_ACR:
WM32 0xFF010040 0x00004000 ;TESCR1:
WM32 0xFF010048 0x00004000 ;L_TESCR1:
;WM32 0xFF010C80 0x00000001 ;SCCR : normal operation
; init SDRAM Init (PPC bus) for CS1&2
WM16 0xF0010184 0xF000 ;MPTPR
WM8 0xF001019C 0xF0 ;PSRT
WM32 0xF0010190 0xAB2DB4AE ;PSDMR: Precharge all banks
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM32 0xF0010190 0x8B2DB4AE ;PSDMR: CBR Refresh
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM8 0x08000000 0xFF ;Access SDRAM
WM32 0xF0010190 0x9B2DB4AE ;PSDMR: Mode Set
WM8 0x00088110 0xFF ;Access SDRAM
WM8 0x08088110 0xFF ;Access SDRAM
WM32 0xF0010190 0xc32DB4AE ;PSDMR: enable refresh, normal operation
WM16 0x50800206 0x2000 ;flash-protect-disable
; init SDRAM Init (LOCAL bus) for CS5
WM8 0xF00101A4 0xF0 ;LSRT
WM32 0xF0010194 0xAB41B4AE ;LSDMR: Precharge all banks
WM8 0x30000000 0xFF ;Access SDRAM
WM32 0xF0010194 0x8B41B4AE ;LSDMR: CBR Refresh
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM8 0x30000000 0xFF ;Access SDRAM
WM32 0xF0010194 0x9B41B4AE ;LSDMR: Mode Set
WM8 0x30044088 0xFF ;Access SDRAM
WM32 0xF0010194 0xC341B4AE ;LSDMR: enable refresh, normal operation
; init memory controller(slave)
;WM32 0xFF010104 0xFFE00C54 ;OR0: Flash 2MB, CS early negate, 5 w.s., Timing relax
WM32 0xFF010100 0x00000000 ;BR0: Flash @0xFF000000, 16bit, no parity
;WM32 0xFF01010C 0xF8002B00 ;OR1: 128MBYTE
;WM32 0xFF010108 0x00000041 ;BR1: 60x-BUS
;WM32 0xFF010114 0xF8002B00 ;OR2: 128MBYTE riki chg fc->f8
;WM32 0xFF010110 0x08000041 ;BR2: 60x-BUS
;WM32 0xFF01011C 0x00000000 ;OR3: 64MBYTE
;WM32 0xFF010118 0x00000000 ;BR3: 60x-BUS
;WM32 0xFF01012C 0xFC002F00 ;OR5: 64MBYTE
;WM32 0xFF010128 0x30001861 ;BR5: LOCAL-BUS
;WM32 0xFF010134 0xFC000008 ;OR6: MAINI-O
;WM32 0xFF010130 0x40001001 ;BR6: 60x-BUS
;WM32 0xFF01013C 0xFF000C0C ;OR7: FPGA-IO
;WM32 0xFF010138 0x50001001 ;BR7: 4MBYTE
;WM32 0xFF010144 0xFFFC0100 ;OR8: FUMEI-napa
;WM32 0xFF010140 0x58001081 ;BR8: FUMEI-napa
;WM32 0xFF01014C 0xFFFF0008 ;OR9: C-FLASH
;WM32 0xFF010148 0x80001001 ;BR9: 60x-BUS
[TARGET]
CPUTYPE 8270 ;the CPU type (603EV,750,8240,8260)
JTAGCLOCK 0 ;use 16 MHz JTAG clock
BOOTADDR 0xfff00100 ;boot address used for start-up break
WORKSPACE 0x0e000000 ;workspace in target RAM for fast download
BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT | GATEWAY)
BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC hardware breakpoints
;STEPMODE HWBP ;TRACE or HWBP, HWPB uses a hardware breakpoint
VECTOR CATCH ;catch unhandled exceptions
DCACHE NOFLUSH ;data cache flushing (FLUSH | NOFLUSH)
;MMU XLAT ;translate effective to physical address
POWERUP 1000 ;start delay after power-up detected in ms
;REGLIST SPR ;select register to transfer to GDB
;REGLIST ALL ;select register to transfer to GDB
;VIO 7 9600 ;TCP port for virtual IO, BCSR1: enable RS232-1 !!!
;SIO 7 9600 ;TCP port for serial IO, check BCSR1: enable RS232-1 !!!
[HOST]
IP 192.168.0.3
FILE D:\cygwin\home\riki\ram-test-data\make_bin_inc_256M.bin
FORMAT BIN 0x00000000
LOAD MANUAL ;load code MANUAL or AUTO after reset
DEBUGPORT 2001
PROMPT MPC8270> ;new prompt for Telnet
DUMP D:\cygwin\home\riki\temp\dump.bin
[FLASH]
CHIPTYPE AM29BX16 ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16)
;CHIPTYPE AM29BX8
CHIPSIZE 0x200000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000)
BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32 | 64)
;WORKSPACE 0x04700000 ;workspace in dual port RAM
WORKSPACE 0x00000000 ;workspace in SDRAM
;FILE E:\tornado\target\config\ads8260\test.hex ;The file to program
FORMAT BIN
FILE D:\tftpboot\u-boot.bin
;
ERASE 0xFFE00000 CHIP ;ERASE WHOLE CHIP
[REGS]
DMM1 0xF0000000
FILE C:\BDI\CONFIG\reg8270.def
^ permalink raw reply
* Xilinx SystemACE driver for 2.6
From: G.Muruganandam @ 2006-06-14 18:35 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: glikely
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
Hello g,
I am looking for the answer to your question regarding the System ACE
driver under 2.6
posted in the linuxppc-embedded@ozlabs.org.
Pl let me know whether it is ported to 2.6.
If yes, Would it be possible to share the source code?
Looking forward to hear from you.
Thanks
G.Muruganandam
Earlier post:
=========
Has anybody ported the SystemACE driver from 2.4 to 2.6 yet? If so,
where can I pull a patch from? Otherwise I'll start work on it.
Thanks,
g.
[-- Attachment #2: Type: text/html, Size: 599 bytes --]
^ permalink raw reply
* Re: USB flashdrive on Motorola MPC5200 (IceCube) board, linux ke rnel 2.4.20
From: Wolfgang Denk @ 2006-06-14 20:07 UTC (permalink / raw)
To: Furxhi, Orges; +Cc: linuxppc-embedded
In-Reply-To: <162B449665D6D643AD9E1D50FC6F4B1403F16D5F@mdcexc05.na.ops.local>
In message <162B449665D6D643AD9E1D50FC6F4B1403F16D5F@mdcexc05.na.ops.local> you wrote:
> I downloaded the kernel you recommended and now I am trying to build a UBoot
> image that I can load unto flash.
> I use the following commands:
> $ make mrproper
> $ make menuconfig
> (select arch/ppc/configs/icecube_5200_defconfig file, exit and save)
> $ make uImage
Try instead:
$ make mrproper
$ make icecube_5200_config
$ make oldconfig
$ make dep
$ make uImage
> Is there another sequence of make commands that I need to follow to create a
> UBoot image?
Not really.
Note that above is for the old Lite5200 board. For the (newer)
Lite5200B boards you must use latest version of U-Boot and Linux (top
of tree from our git repositories), and "make lite5200b_config" to
start.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"The greatest warriors are the ones who fight for peace."
- Holly Near
^ permalink raw reply
* [OOPS] 2.6.17-rc3 on an mpc8241
From: Guennadi Liakhovetski @ 2006-06-14 20:48 UTC (permalink / raw)
To: linuxppc-dev
"dhclient eth1" (zd1211rw driver) caused the following:
Oops: kernel access of bad area, sig: 11 [#1]
NIP: C004151C LR: C0039850 CTR: 00000000
REGS: c6a15c70 TRAP: 0300 Not tainted (2.6.17-rc3-kuroboxHG)
MSR: 00009032 <EE,ME,IR,DR> CR: 44000488 XER: 00000000
DAR: 00000038, DSISR: 20000000
TASK = c7d4a850[2546] 'dhclient' THREAD: c6a14000
GPR00: 00030017 C6A15D20 C7D4A850 00000038 C03CBF00 00000000 00000038 C6A15D50
GPR08: 00000000 00000004 00000000 00000004 00000000 100383F4 C76557C8 00000001
GPR16: 00000000 C6A15D50 00000000 C6A15EA0 C6A15DF0 00000001 00000000 C75C7F00
GPR24: 30017000 00000000 00000000 C03CBF00 C7655868 30017000 C6A45E07 00000038
NIP [C004151C] put_page+0x0/0x40
LR [C0039850] do_generic_mapping_read+0x354/0x480
Call Trace:
[C6A15D20] [C0040EB0] page_cache_readahead+0xd0/0x224 (unreliable)
[C6A15D40] [C0039838] do_generic_mapping_read+0x33c/0x480
[C6A15DE0] [C003C004] __generic_file_aio_read+0x1b4/0x208
[C6A15E30] [C003C224] generic_file_aio_read+0x3c/0x5c
[C6A15E40] [C0059768] do_sync_read+0xc4/0x134
[C6A15EF0] [C0059874] vfs_read+0x9c/0x1a4
[C6A15F10] [C0059CA0] sys_read+0x4c/0x90
[C6A15F40] [C0004220] ret_from_syscall+0x0/0x38
Instruction dump:
912700e4 7d000124 4bffc4a9 80010014 38210010 7c0803a6 4e800020 812700e8
3929ffff 912700e8 7d000124 4bffffdc <80030000> 700a4000 40820034 80030004
Corrupted stack?...
Thanks
Guennadi
---
Guennadi Liakhovetski
^ permalink raw reply
* Re: [OOPS] 2.6.17-rc3 on an mpc8241
From: Johannes Berg @ 2006-06-14 20:57 UTC (permalink / raw)
To: Guennadi Liakhovetski; +Cc: linuxppc-dev
In-Reply-To: <Pine.LNX.4.60.0606142245370.12545@poirot.grange>
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
On Wed, 2006-06-14 at 22:48 +0200, Guennadi Liakhovetski wrote:
> Corrupted stack?...
Looks weird.
Enable slab debugging? :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]
^ permalink raw reply
* Re: [OOPS] 2.6.17-rc3 on an mpc8241
From: Guennadi Liakhovetski @ 2006-06-14 21:01 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev
In-Reply-To: <1150318658.13958.26.camel@johannes.berg>
On Wed, 14 Jun 2006, Johannes Berg wrote:
> On Wed, 2006-06-14 at 22:48 +0200, Guennadi Liakhovetski wrote:
> > Corrupted stack?...
>
> Looks weird.
> Enable slab debugging? :)
Compiling 2.6.17-rc5... And I don't know how easy it is to reproduce...
Once I have the kernel ready will try...
Thanks
Guennadi
---
Guennadi Liakhovetski
^ permalink raw reply
* RE: USB flashdrive on Motorola MPC5200 (IceCube) board, linux ke rnel 2.4.20
From: Furxhi, Orges @ 2006-06-14 21:48 UTC (permalink / raw)
To: Wolfgang Denk, Furxhi, Orges, Igor Luri; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 7397 bytes --]
Thank you al for your help.
>> I downloaded the kernel you recommended and now I am trying to build a
>>UBoot
>> image that I can load unto flash.
>> I use the following commands:
>> $ make mrproper
>> $ make menuconfig
>> (select arch/ppc/configs/icecube_5200_defconfig file, exit and save)
>> $ make uImage
>Try instead:
> $ make mrproper
> $ make icecube_5200_config
> $ make oldconfig
> $ make dep
> $ make uImage
I was able to build the UBoot image and load it unto my boards flash.
However, as of now I do not have a functioning board.
I am using the kernel build using the ELDK 3.1.1 tools and a file system
which was build using Montavista tools (DevRocket 1.1). Is that a problem???
The kernel is uncompressed on the board and loads, but the Login prompt
never comes up. Following are my boot up messages.
U-Boot 1.1.4 (Mar 21 2006 - 15:07:57)
CPU: MPC5200 v1.2 at 462 MHz
Bus 132 MHz, IPB 66 MHz, PCI 33 MHz
Board: Motorola MPC5200 (IceCube)
I2C: 85 kHz, ready
DRAM: 64 MB
FLASH: 8 MB
In: serial
Out: serial
Err: serial
Net: FEC ETHERNET
Type "run flash_nfs" to mount root filesystem over NFS
Hit any key to stop autoboot: 0
## Booting image at ff900000 ...
Image Name: Linux-2.4.25
Created: 2006-06-14 21:07:25 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 870906 Bytes = 850.5 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.25 (root@localhost.localdomain) (gcc version 3.3.3 (DENX
ELDK
3.1.1 3.3.3-9)) #7 Wed Jun 14 16:02:04 CDT 2006
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2
ip=192.168.0.7:192.
168.0.2:192.168.0.2:255.255.255.0:cpua::off
Calibrating delay loop... 307.20 BogoMIPS
Memory: 62224k available (1492k kernel code, 460k data, 76k init, 0k
highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
pty: 256 Unix98 ptys configured
devfs_register(ttyS): could not append to parent, err: -17
devfs_register(ttyS): could not append to parent, err: -17
devfs_register(cua): could not append to parent, err: -17
devfs_register(cua): could not append to parent, err: -17
ttyS0 on PSC1
ttyS1 on PSC2
ttyS2 on PSC3
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
Icecube Bank 0: Found 1 x16 devices at 0x0 in 8-bit mode
Intel/Sharp Extended Query Table at 0x0031
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Icecube flash bank 0: Using static image partition definition
Creating 3 MTD partitions on "Icecube Bank 0":
0x00000000-0x00100000 : "u-boot"
0x00100000-0x00200000 : "kernel"
0x00200000-0x00800000 : "jffs2"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/usb-ohci.c: USB OHCI at membase 0xf0001000, IRQ 44
host/usb-ohci.c: usb-0, Built-In ohci
usb.c: new USB bus registered, assigned bus number 1
Product: USB OHCI Root Hub
SerialNumber: f0001000
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
eth0: Phy @ 0x0, type LXT971 (0x001378e2)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
eth0: config: auto-negotiation off, 100FDX, 100HDX, 10FDX, 10HDX.
IP-Config: Complete:
device=eth0, addr=192.168.0.7, mask=255.255.255.0, gw=192.168.0.2,
host=cpua, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Empty flash at 0x0000fffc ends at 0x00010000
CLEANMARKER node found at 0x00010000, not first node in block (0x00000000)
Empty flash at 0x0002fffc ends at 0x00030000
CLEANMARKER node found at 0x00030000, not first node in block (0x00020000)
Empty flash at 0x0004fffc ends at 0x00050000
CLEANMARKER node found at 0x00050000, not first node in block (0x00040000)
Empty flash at 0x0006fffc ends at 0x00070000
CLEANMARKER node found at 0x00070000, not first node in block (0x00060000)
Empty flash at 0x0008fffc ends at 0x00090000
CLEANMARKER node found at 0x00090000, not first node in block (0x00080000)
Empty flash at 0x000afffc ends at 0x000b0000
CLEANMARKER node found at 0x000b0000, not first node in block (0x000a0000)
Empty flash at 0x000cfffc ends at 0x000d0000
CLEANMARKER node found at 0x000d0000, not first node in block (0x000c0000)
Empty flash at 0x000efffc ends at 0x000f0000
CLEANMARKER node found at 0x000f0000, not first node in block (0x000e0000)
Empty flash at 0x0010fffc ends at 0x00110000
CLEANMARKER node found at 0x00110000, not first node in block (0x00100000)
Empty flash at 0x0012fffc ends at 0x00130000
CLEANMARKER node found at 0x00130000, not first node in block (0x00120000)
CLEANMARKER node found at 0x00150000, not first node in block (0x00140000)
Empty flash at 0x0016fffc ends at 0x00170000
CLEANMARKER node found at 0x00170000, not first node in block (0x00160000)
Empty flash at 0x0018fffc ends at 0x00190000
CLEANMARKER node found at 0x00190000, not first node in block (0x00180000)
Empty flash at 0x001afffc ends at 0x001b0000
CLEANMARKER node found at 0x001b0000, not first node in block (0x001a0000)
Empty flash at 0x001cffe8 ends at 0x001d0000
CLEANMARKER node found at 0x001d0000, not first node in block (0x001c0000)
VFS: Mounted root (jffs2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 76k init
serial console detected. Disabling virtual terminals.
init started: BusyBox v0.60.3 (2004.01.09-22:53+0000) multi-call binary
System initialized
eth0: status: link up, 100 Mbps Full Duplex, auto-negotiation complete.
hub.c: Cannot enable port 2 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
>> Is there another sequence of make commands that I need to follow to
>>create a
>> UBoot image?
>Not really.
>Note that above is for the old Lite5200 board. For the (newer)
>Lite5200B boards you must use latest version of U-Boot and Linux (top
>of tree from our git repositories), and "make lite5200b_config" to
>start.
The board we are using contains the Lite5200
The purpose for doing all this is to get the USB flash drive to work on the
board (read, write files to it)
Thanks again for all your help.
Orges
[-- Attachment #2: Type: text/html, Size: 37443 bytes --]
^ permalink raw reply
* Re: [OOPS] 2.6.17-rc3 on an mpc8241
From: Guennadi Liakhovetski @ 2006-06-14 22:08 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev
In-Reply-To: <Pine.LNX.4.60.0606142300120.12545@poirot.grange>
On Wed, 14 Jun 2006, Guennadi Liakhovetski wrote:
> On Wed, 14 Jun 2006, Johannes Berg wrote:
>
> > On Wed, 2006-06-14 at 22:48 +0200, Guennadi Liakhovetski wrote:
> > > Corrupted stack?...
> >
> > Looks weird.
> > Enable slab debugging? :)
>
> Compiling 2.6.17-rc5... And I don't know how easy it is to reproduce...
> Once I have the kernel ready will try...
Ghm, ok, I know what that was - the very same bug I myself reported
earlier in asm-offsets... how do you say it in English - twice in the same
trap?:-)
Thanks
Guennadi
---
Guennadi Liakhovetski
^ permalink raw reply
* Re: [OOPS] 2.6.17-rc3 on an mpc8241
From: Johannes Berg @ 2006-06-14 22:11 UTC (permalink / raw)
To: Guennadi Liakhovetski; +Cc: linuxppc-dev
In-Reply-To: <Pine.LNX.4.60.0606150007430.12545@poirot.grange>
[-- Attachment #1: Type: text/plain, Size: 366 bytes --]
On Thu, 2006-06-15 at 00:08 +0200, Guennadi Liakhovetski wrote:
> Ghm, ok, I know what that was - the very same bug I myself reported
> earlier in asm-offsets...
in asm-offsets? Are you saying that you know what caused this and I
shouldn't bother looking at it?
> how do you say it in English - twice in the same
> trap?:-)
No idea :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]
^ permalink raw reply
* Re: [OOPS] 2.6.17-rc3 on an mpc8241
From: Guennadi Liakhovetski @ 2006-06-14 22:25 UTC (permalink / raw)
To: Johannes Berg; +Cc: linuxppc-dev
In-Reply-To: <1150323066.13958.28.camel@johannes.berg>
On Thu, 15 Jun 2006, Johannes Berg wrote:
> On Thu, 2006-06-15 at 00:08 +0200, Guennadi Liakhovetski wrote:
>
> > Ghm, ok, I know what that was - the very same bug I myself reported
> > earlier in asm-offsets...
>
> in asm-offsets? Are you saying that you know what caused this and I
> shouldn't bother looking at it?
As I said - already reported and fixed in 2.6.17-rc6:
From: Linus Torvalds <>
To: Linux Kernel Mailing List <>
Subject: Linux v2.6.17-rc6
...
Paul Mackerras:
Add CMSPAR to termbits.h for powerpc and alpha
ppc: Fix typo in TI_LOCAL_FLAGS definition
Thanks
Guennadi
---
Guennadi Liakhovetski
^ permalink raw reply
* Re: [OOPS] 2.6.17-rc3 on an mpc8241
From: Johannes Berg @ 2006-06-14 22:27 UTC (permalink / raw)
To: Guennadi Liakhovetski; +Cc: linuxppc-dev
In-Reply-To: <Pine.LNX.4.60.0606150017380.12545@poirot.grange>
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
On Thu, 2006-06-15 at 00:25 +0200, Guennadi Liakhovetski wrote:
> As I said - already reported and fixed in 2.6.17-rc6:
Ah, I saw that but didn't make the connection. Sorry. Good to know it's
fine now.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]
^ permalink raw reply
* Re: [PATCH 2/3] powerpc: Instrument Hypervisor Calls: add wrappers
From: Paul Mackerras @ 2006-06-14 22:33 UTC (permalink / raw)
To: Nathan Lynch; +Cc: Bryan Rosenburg, Christopher Yeoh, linuxppc-dev
In-Reply-To: <20060614144230.GE26750@localdomain>
Nathan Lynch writes:
> Without disabling preemption around the mfspr ... update_stats section
> in these hcall wrappers, you risk updating the stats on the wrong cpu.
I think we are only looking for total counts and times anyway, so it
doesn't really matter which cpu updates the stats, as long as the time
gets accounted on some cpu. The use of per-cpu counters is just for
better cache behaviour.
Paul.
^ permalink raw reply
* Re: [PATCH 2/3] powerpc: Instrument Hypervisor Calls: add wrappers
From: Nathan Lynch @ 2006-06-14 22:40 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Bryan Rosenburg, Christopher Yeoh, linuxppc-dev
In-Reply-To: <17552.36563.460775.131555@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
> Nathan Lynch writes:
>
> > Without disabling preemption around the mfspr ... update_stats section
> > in these hcall wrappers, you risk updating the stats on the wrong cpu.
>
> I think we are only looking for total counts and times anyway, so it
> doesn't really matter which cpu updates the stats, as long as the time
> gets accounted on some cpu. The use of per-cpu counters is just for
> better cache behaviour.
Makes sense... then perhaps the stats shouldn't be exported in per-cpu
files in sysfs, and the kernel should calculate and report the totals
to userspace in some other form.
^ permalink raw reply
* Re: USB flashdrive on Motorola MPC5200 (IceCube) board, linux ke rnel 2.4.20
From: Wolfgang Denk @ 2006-06-14 23:02 UTC (permalink / raw)
To: Furxhi, Orges; +Cc: linuxppc-embedded
In-Reply-To: <162B449665D6D643AD9E1D50FC6F4B1403F16E83@mdcexc05.na.ops.local>
In message <162B449665D6D643AD9E1D50FC6F4B1403F16E83@mdcexc05.na.ops.local> you wrote:
...
> I am using the kernel build using the ELDK 3.1.1 tools and a file system
> which was build using Montavista tools (DevRocket 1.1). Is that a problem???
Don't know. Why don't you try either the ramdisk image or the NFS
root file system that comes included with the ELDK? Both are known to
work fine, and testing should take less than 5 minutes.
> Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2
> ip=192.168.0.7:192.
...
How did you create the root file system image, and how did you write
it to flash?
> devfs_register(ttyS): could not append to parent, err: -17
> devfs_register(ttyS): could not append to parent, err: -17
> devfs_register(cua): could not append to parent, err: -17
> devfs_register(cua): could not append to parent, err: -17
This doesn't look so good to me. I recommend to disable devfs in your
kernel configuration.
...
Eventually the kernel does not find the needed /dev/ entries. Make
sure what your root filesystem expects. Does it really use devfs?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"Wagner's music is better than it sounds." - Mark Twain
^ permalink raw reply
* Re: [PATCH 2/3] powerpc: Instrument Hypervisor Calls: add wrappers
From: Mike Kravetz @ 2006-06-14 23:52 UTC (permalink / raw)
To: Nathan Lynch
Cc: Bryan Rosenburg, linuxppc-dev, Paul Mackerras, Christopher Yeoh
In-Reply-To: <20060614224040.GH26750@localdomain>
On Wed, Jun 14, 2006 at 05:40:40PM -0500, Nathan Lynch wrote:
> Makes sense... then perhaps the stats shouldn't be exported in per-cpu
> files in sysfs, and the kernel should calculate and report the totals
> to userspace in some other form.
I'm really wondering what would be the best way to make these stats
available to userspace. As mentioned, putting them into sysfs would
violate the one value/one file rule. The use of /proc is discouraged.
debugfs was mentioned, but I have never used it. Noticed that debugfs
was enabled in the default config (at least for pseries). Looks like
that would be the best alternative. Agree?
--
Mike
^ permalink raw reply
* RE: [PATCH/2.6.17-rc4 8/10] Add tsi108 8250 serial support
From: Zang Roy-r61911 @ 2006-06-15 3:27 UTC (permalink / raw)
To: Adrian Cox
Cc: Alexandre.Bounine, Russell King, linux-kernel, linuxppc-dev list,
Paul Mackerras, linux-serial, Yang Xin-Xin-r48390
> On Tue, 2006-06-13 at 13:39 +0800, Zang Roy-r61911 wrote:
>
> > The reason is that the serial port on tsi108/9 is a bit difference
> > with the standard 8250 serial port. the patch deal with the
> difference.
> > The prefixed ">" is caused by "Fw" the email. Sorry for that. The
> > following is the original patch.
>
> The problem I see is that the code uses a CONFIG option, to
> change the behaviour of the generic 8250 driver. What happens
> if somebody adds a PCI serial card to a tsi108 based machine?
I do not like CONFIG option:). It might be a problem in the environment you suggesting.
>
> Perhaps you should define a new value for
> uart_8250_port.port.iotype, and add code to serial_in and
> serial_out to handle the IIR register.
I will consider it.
>
> --
> Adrian Cox <adrian@humboldt.co.uk>
>
^ permalink raw reply
* [PATCH] powerpc: kdump: Reserve the existing TCE mappings left by the first kernel
From: Haren Myneni @ 2006-06-15 4:01 UTC (permalink / raw)
To: Paul Mackerras, Olof Johansson; +Cc: linuxppc-dev, Milton Miller II
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
Olof,
Posting the modified patch based on your suggestion of reserving
in-use TCE entries and use only available ones in the kdump boot. Please
let me know your comments.
Thanks
Haren
During kdump boot, noticed some machines checkstop on dma protection
fault for ongoing DMA left in the first kernel. Instead of initializing
TCE entries in iommu_init() for the kdump boot, this patch fixes this
issue by walking through the each TCE table and checks whether the
entries are in use by the first kernel. If so, reserve those entries by
setting the corresponding bit in tbl->it_map such that these entries
will not be available for the kdump boot.
However it could be possible that all TCE entries might be used up due
to the driver bug that does continuous mapping. This patch will make
sure that minimum of 10 entries will be available such that kdump boot
could be successful in some cases.
Signed-off-by: Haren Myneni <haren@us.ibm.com>
[-- Attachment #2: ppc64-kdump-checkstop-DMA-fault-fix.patch --]
[-- Type: text/x-patch, Size: 4865 bytes --]
diff -Naurp 2617-rc6-git5.orig/arch/powerpc/kernel/iommu.c 2617-rc6-git5/arch/powerpc/kernel/iommu.c
--- 2617-rc6-git5.orig/arch/powerpc/kernel/iommu.c 2006-06-13 19:46:43.000000000 -0700
+++ 2617-rc6-git5/arch/powerpc/kernel/iommu.c 2006-06-14 20:50:33.000000000 -0700
@@ -38,6 +38,7 @@
#include <asm/iommu.h>
#include <asm/pci-bridge.h>
#include <asm/machdep.h>
+#include <asm/kdump.h>
#define DBG(...)
@@ -439,8 +440,36 @@ struct iommu_table *iommu_init_table(str
tbl->it_largehint = tbl->it_halfpoint;
spin_lock_init(&tbl->it_lock);
+#ifdef CONFIG_CRASH_DUMP
+ if (ppc_md.tce_get) {
+ unsigned long index, tceval;
+ unsigned long tcecount = 0;
+
+ /*
+ * Reserve the existing mappings left by the first kernel.
+ */
+ for (index = 0; index < tbl->it_size; index++) {
+ tceval = ppc_md.tce_get(tbl, index + tbl->it_offset);
+ /*
+ * Freed TCE entry contains 0x7fffffffffffffff on JS20
+ */
+ if (tceval && (tceval != 0x7fffffffffffffffUL)) {
+ __set_bit(index, tbl->it_map);
+ tcecount++;
+ }
+ }
+ if ((tbl->it_size - tcecount) < KDUMP_MIN_TCE_ENTRIES) {
+ printk(KERN_WARNING "TCE table is full; ");
+ printk(KERN_WARNING "freeing %d entries for the kdump boot\n",
+ KDUMP_MIN_TCE_ENTRIES);
+ for (index = 0; index < KDUMP_MIN_TCE_ENTRIES; index++)
+ __clear_bit(index, tbl->it_map);
+ }
+ }
+#else
/* Clear the hardware table in case firmware left allocations in it */
ppc_md.tce_free(tbl, tbl->it_offset, tbl->it_size);
+#endif
if (!welcomed) {
printk(KERN_INFO "IOMMU table initialized, virtual merging %s\n",
diff -Naurp 2617-rc6-git5.orig/arch/powerpc/platforms/pseries/iommu.c 2617-rc6-git5/arch/powerpc/platforms/pseries/iommu.c
--- 2617-rc6-git5.orig/arch/powerpc/platforms/pseries/iommu.c 2006-06-13 19:46:38.000000000 -0700
+++ 2617-rc6-git5/arch/powerpc/platforms/pseries/iommu.c 2006-06-13 19:48:51.000000000 -0700
@@ -97,6 +97,14 @@ static void tce_free_pSeries(struct iomm
}
}
+static unsigned long tce_get_pseries(struct iommu_table *tbl, long index)
+{
+ union tce_entry *tp;
+
+ index <<= TCE_PAGE_FACTOR;
+ tp = ((union tce_entry *)tbl->it_base) + index;
+ return tp->te_word;
+}
static void tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum,
long npages, unsigned long uaddr,
@@ -253,6 +261,25 @@ static void tce_freemulti_pSeriesLP(stru
}
}
+static unsigned long tce_get_pSeriesLP(struct iommu_table *tbl, long tcenum)
+{
+ u64 rc;
+ unsigned long tce_ret;
+
+ tcenum <<= TCE_PAGE_FACTOR;
+ rc = plpar_tce_get((u64)tbl->it_index, (u64)tcenum << 12, &tce_ret);
+
+ if (rc && printk_ratelimit()) {
+ printk("tce_get_pSeriesLP: plpar_tce_get failed. rc=%ld\n",
+ rc);
+ printk("\tindex = 0x%lx\n", (u64)tbl->it_index);
+ printk("\ttcenum = 0x%lx\n", (u64)tcenum);
+ show_stack(current, (unsigned long *)__get_SP());
+ }
+
+ return tce_ret;
+}
+
static void iommu_table_setparms(struct pci_controller *phb,
struct device_node *dn,
struct iommu_table *tbl)
@@ -272,7 +299,10 @@ static void iommu_table_setparms(struct
}
tbl->it_base = (unsigned long)__va(*basep);
+
+#ifndef CONFIG_CRASH_DUMP
memset((void *)tbl->it_base, 0, *sizep);
+#endif
tbl->it_busno = phb->bus->number;
@@ -588,11 +618,13 @@ void iommu_init_early_pSeries(void)
ppc_md.tce_build = tce_build_pSeriesLP;
ppc_md.tce_free = tce_free_pSeriesLP;
}
+ ppc_md.tce_get = tce_get_pSeriesLP;
ppc_md.iommu_bus_setup = iommu_bus_setup_pSeriesLP;
ppc_md.iommu_dev_setup = iommu_dev_setup_pSeriesLP;
} else {
ppc_md.tce_build = tce_build_pSeries;
ppc_md.tce_free = tce_free_pSeries;
+ ppc_md.tce_get = tce_get_pseries;
ppc_md.iommu_bus_setup = iommu_bus_setup_pSeries;
ppc_md.iommu_dev_setup = iommu_dev_setup_pSeries;
}
diff -Naurp 2617-rc6-git5.orig/include/asm-powerpc/kdump.h 2617-rc6-git5/include/asm-powerpc/kdump.h
--- 2617-rc6-git5.orig/include/asm-powerpc/kdump.h 2006-06-13 19:47:27.000000000 -0700
+++ 2617-rc6-git5/include/asm-powerpc/kdump.h 2006-06-13 19:48:15.000000000 -0700
@@ -8,6 +8,8 @@
#define KDUMP_TRAMPOLINE_START 0x0100
#define KDUMP_TRAMPOLINE_END 0x3000
+#define KDUMP_MIN_TCE_ENTRIES 10
+
extern void kdump_setup(void);
#endif /* __PPC64_KDUMP_H */
diff -Naurp 2617-rc6-git5.orig/include/asm-powerpc/machdep.h 2617-rc6-git5/include/asm-powerpc/machdep.h
--- 2617-rc6-git5.orig/include/asm-powerpc/machdep.h 2006-06-13 19:47:15.000000000 -0700
+++ 2617-rc6-git5/include/asm-powerpc/machdep.h 2006-06-13 19:48:02.000000000 -0700
@@ -82,6 +82,8 @@ struct machdep_calls {
void (*tce_free)(struct iommu_table *tbl,
long index,
long npages);
+ unsigned long (*tce_get)(struct iommu_table *tbl,
+ long index);
void (*tce_flush)(struct iommu_table *tbl);
void (*iommu_dev_setup)(struct pci_dev *dev);
void (*iommu_bus_setup)(struct pci_bus *bus);
^ permalink raw reply
* RE: [PATCH/2.6.17-rc4 8/10] Add tsi108 8250 serial support
From: Zang Roy-r61911 @ 2006-06-15 5:13 UTC (permalink / raw)
To: Russell King
Cc: Alexandre.Bounine, linux-kernel, linuxppc-dev list,
Paul Mackerras, linux-serial, Yang Xin-Xin-r48390
> > On May 17, 2006, at 5:14 AM, Zang Roy-r61911 wrote:
> >
> > > This patch contains changes to the serial device driver
> specific for
> > > integrated serial port in Tsi108 Host Bridge.
>
> There's no explaination about why this is required. What is
> the problem?
> Which changes relate directly to this problem and which
> changes are related to fixing some other issue not related to
> the errata?
>
More detailed explanation:
This patch addresses two differences in the Tsi108/109 UART behavior from the standard one.
1. Check for UART_IER_UUE bit in the autoconfig routine. This section of autoconfig is excluded for
Tsi108/109 because bits 7 and 6 are reserved for internal use. They are R/W bits. In addition to incorrect
identification, changing these bits (from 00) will make Tsi108/109 UART non-functional.
2. ERRATA. Reading the UART's Interrupt Identification Register (IIR) clears the Transmit
Holding Register Empty (THRE) and Transmit buffer Empty (TEMP) interrupts even
if they are not enabled in the Interrupt Enable Register (IER). This leads to loss of the interrupts.
Interrupts are not cleared when reading UART registers as 32-bit word.
^ permalink raw reply
* Re: regarding xilinx system ace in linux-2.6
From: rahul @ 2006-06-15 6:28 UTC (permalink / raw)
To: Jeff Angielski; +Cc: linuxppc-embedded
In-Reply-To: <1150294495.7839.4.camel@sumo-jaa.nrl.navy.mil>
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
>>Hi all
>>I would like to know if anyone in the group or otherwise using Xilinx's
>>System ACE MPU interface to read/write to Compact Flash card on their
>>hardware ?
>>I came to know the code is implemented in linux-2.4 but i want to have
>>it in linux-2.6
>>
>>
>
>Last I heard was that Xilinx was working on the linux 2.6
>implementation.
>
>You should contact your Xilinx representative to find out the current
>status of that effort and/or where you can get the source code.
>
>
>
Thanks FYI Jeff Angielski. I will try to contact them.
Can anyone point me to any loadable block driver code for linux-2.6,
atleast i can work on that modifuying for the meanwhile.
Thanks
Rahul
>Jeff Angielski
>The PTR Group
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1288 bytes --]
^ permalink raw reply
* Problem in PCI initialization
From: Prabhat_Singh @ 2006-06-15 6:39 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 3710 bytes --]
Hi all
I am using MPC8248 based board which has got one PCI interface at 66 MHz .
I am not able to initialize PCI, I am really clueless and getting the following errors.
Can any one tell me what is wrong with this?
But I am initializing the pci in uboot also and there in uboot able to detect the network card, but while boot its give first time the machine check exception and then its reseting itself and then in second try it (uboot) is working fine. Do the register sets in uboot is again read by linux during linux PCI initialization?
Someone please help.
## Booting image at ffd00000 ...
Image Name: Linux-2.4.28-1.3.1-517
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 643461 Bytes = 628.4 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x01FAB390 => set upper limit to 0x00800000
No initrd
## Transferring control to Linux (at address 00000000) ...
Memory BAT mapping: BAT2=32Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.28-1.3.1-517 (root@localhost.localdomain) (gcc version 3.3.4) #280 Tue Jun 13 16:17:02 IST 2006
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,115200 root=1f00
Calibrating delay loop... 266.24 BogoMIPS
Memory: 30712k available (1228k kernel code, 368k data, 64k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Scanning bus 00
Oops: kernel access of bad area, sig: 11
NIP: C000C6DC XER: 00000000 LR: C0003FAC SP: C0183DC0 REGS: c0183d10 TRAP: 0300 Not tainted
MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 00000024, DSISR: 20000000
TASK = c023a000[14] '¢pÀ }¬' Last syscall: -1
last math 00000000 last altivec 00000000
GPR00: 00000000 C0183DC0 C023A000 C0183E80 00000024 20000000 C0170000 00000439
GPR08: 00000000 C0183D20 00000000 00000000 22004084 B5FFFFFF 01FF8000 007FFC1E
GPR16: 00000001 00000000 FFFFFFFF 007FFC00 00001032 00183E70 00000000 C0003FAC
GPR24: 00000000 00030001 00000008 20000000 C0183E80 00000024 00000024 00000008
Call backtrace:
C0019384 C0003FAC 00000000 C0003FAC 00000000 C0003FAC C0184214
C0003FAC C0184380 C0003FAC C01844F0 C0003FAC C0184664 C0003FAC
C01847D0 C0003FAC C0184940 C0003FAC C0184AB4 C0003FAC C0184C24
C0003FAC C0184D94 C0003FAC C0184F04 C0003FAC C0185074 C0003FAC
00000000 C0003FAC 00000000 C0003FAC 00000000
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
<0>Rebooting in 180 seconds..
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
[-- Attachment #2: Type: text/html, Size: 20153 bytes --]
^ permalink raw reply
* xilinx ml403 with 2.6 Kernel
From: "Karl Prüfer" @ 2006-06-15 10:20 UTC (permalink / raw)
To: linuxppc-embedded
Hallo!
I am not perfect in english, so please forgice me my mistakes...
I am trying to get the 2.6 kernel running on my ml403 board...
1. I downloaded paulus tree:
cg-clone git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git myprojectdir
2. I copied my Xilinx BSP in the kernel dir
cp -ra <BSPDIR>/* <KERNELDIR>/
3. I configured the Makefile to use my crosscompiler and the ppc Arch.
I have built a crosstoolchain for a 2.4.26 kernel in past (with crosstool 0.42).
I know that this toolchain works with a 2.4 kernel...
Can i use this toolchain to compile the 2.6 kernel??
Why do i need a kernel(some headers) to build the croostoolchain??
4. Then I configured the kernel:
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.17-rc5
# Wed Jun 14 10:02:22 2006
#
CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PPC=y
CONFIG_PPC32=y
CONFIG_GENERIC_NVRAM=y
CONFIG_GENERIC_FIND_NEXT_BIT=y
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
#
# General setup
#
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
# CONFIG_SWAP is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
# CONFIG_IKCONFIG is not set
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_MODVERSIONS=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y
#
# Block layer
#
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set
#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="anticipatory"
#
# Processor
#
# CONFIG_6xx is not set
CONFIG_40x=y
# CONFIG_44x is not set
# CONFIG_8xx is not set
# CONFIG_E200 is not set
# CONFIG_E500 is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_KEXEC is not set
# CONFIG_CPU_FREQ is not set
CONFIG_4xx=y
# CONFIG_WANT_EARLY_SERIAL is not set
#
# IBM 4xx options
#
# CONFIG_BUBINGA is not set
# CONFIG_CPCI405 is not set
# CONFIG_EP405 is not set
# CONFIG_REDWOOD_5 is not set
# CONFIG_REDWOOD_6 is not set
# CONFIG_SYCAMORE is not set
# CONFIG_WALNUT is not set
# CONFIG_XILINX_ML300 is not set
CONFIG_XILINX_ML403=y
CONFIG_IBM405_ERR77=y
CONFIG_IBM405_ERR51=y
CONFIG_XILINX_VIRTEX_4_FX=y
CONFIG_XILINX_VIRTEX=y
CONFIG_EMBEDDEDBOOT=y
# CONFIG_PPC4xx_DMA is not set
CONFIG_PPC_GEN550=y
CONFIG_UART0_TTYS0=y
# CONFIG_UART0_TTYS1 is not set
CONFIG_NOT_COHERENT_CACHE=y
#
# Platform options
#
# CONFIG_PC_KEYBOARD is not set
# CONFIG_HIGHMEM is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_SPARSEMEM_STATIC is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="console=ttyS0,9600 ip=off root=/dev/xsysace/disc0/part3 rw"
# CONFIG_PM is not set
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_SECCOMP=y
CONFIG_ISA_DMA_API=y
#
# Bus options
#
# CONFIG_PPC_I8259 is not set
# CONFIG_PCI is not set
# CONFIG_PCI_DOMAINS is not set
#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set
#
# Advanced setup
#
# CONFIG_ADVANCED_OPTIONS is not set
#
# Default settings for advanced configuration options are used
#
CONFIG_HIGHMEM_START=0xfe000000
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_TASK_SIZE=0x80000000
CONFIG_CONSISTENT_START=0xff100000
CONFIG_CONSISTENT_SIZE=0x00200000
CONFIG_BOOT_LOAD=0x00400000
#
# Networking
#
CONFIG_NET=y
#
# Networking options
#
# CONFIG_NETDEBUG is not set
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_FIB_HASH=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y
CONFIG_INET_AH=y
CONFIG_INET_ESP=y
CONFIG_INET_IPCOMP=y
CONFIG_INET_XFRM_TUNNEL=y
CONFIG_INET_TUNNEL=y
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y
# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_NETFILTER is not set
#
# DCCP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_DCCP is not set
#
# SCTP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_SCTP is not set
#
# TIPC Configuration (EXPERIMENTAL)
#
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_IEEE80211 is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not set
# CONFIG_DEBUG_DRIVER is not set
#
# Connector - unified userspace <-> kernelspace linker
#
# CONFIG_CONNECTOR is not set
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
#
# CONFIG_IDE is not set
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
#
# I2O device support
#
#
# Macintosh device drivers
#
# CONFIG_WINDFARM is not set
#
# Network device support
#
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
#
# PHY device support
#
# CONFIG_PHYLIB is not set
#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_MII is not set
# CONFIG_IBM_EMAC is not set
#
# Ethernet (1000 Mbit)
#
#
# Ethernet (10000 Mbit)
#
#
# Token Ring devices
#
#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set
#
# Wan interfaces
#
# CONFIG_WAN is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
#
# ISDN subsystem
#
# CONFIG_ISDN is not set
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#
CONFIG_INPUT=y
#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_UINPUT is not set
#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_NVRAM is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_RAW_DRIVER is not set
#
# TPM devices
#
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
#
# I2C support
#
# CONFIG_I2C is not set
#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set
#
# Dallas's 1-wire bus
#
# CONFIG_W1 is not set
#
# Hardware Monitoring support
#
# CONFIG_HWMON is not set
# CONFIG_HWMON_VID is not set
#
# Misc devices
#
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
CONFIG_VIDEO_V4L2=y
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
#
# Graphics support
#
# CONFIG_FB is not set
#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
#
# Sound
#
# CONFIG_SOUND is not set
#
# USB support
#
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
# CONFIG_USB_ARCH_HAS_EHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# LED devices
#
# CONFIG_NEW_LEDS is not set
#
# LED drivers
#
#
# LED Triggers
#
#
# InfiniBand support
#
#
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
#
#
# Real Time Clock
#
# CONFIG_RTC_CLASS is not set
#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_XFS_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
CONFIG_INOTIFY=y
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not set
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
# CONFIG_CONFIGFS_FS is not set
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_TCP is not set
# CONFIG_ROOT_NFS is not set
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=m
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
CONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set
#
# IBM 40x options
#
#
# Library routines
#
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC32 is not set
# CONFIG_LIBCRC32C is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
# CONFIG_PROFILING is not set
#
# Kernel hacking
#
# CONFIG_PRINTK_TIME is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_KERNEL=y
CONFIG_LOG_BUF_SHIFT=14
CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_VM is not set
CONFIG_FORCED_INLINING=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_KGDB is not set
# CONFIG_XMON is not set
# CONFIG_BDI_SWITCH is not set
# CONFIG_SERIAL_TEXT_DEBUG is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
CONFIG_CRYPTO=y
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_SHA1=y
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_TGR192 is not set
CONFIG_CRYPTO_DES=y
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_AES is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_TEST is not set
#
# Hardware crypto devices
#
5. I tried to compile the kernel:
make clean bzImage modules
and get this error:
# Temporary hack until we have migrated to asm-powerpc
CLEAN /home/freaked/WORK/ppc_kernel_2_6_paulus
CLEAN arch/ppc/kernel
CLEAN init
CLEAN usr
CLEAN .tmp_versions
CLEAN .tmp_gas_check
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/ppc/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/ppc/kernel/asm-offsets.s
GEN include/asm-ppc/asm-offsets.h
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio.gz
AS usr/initramfs_data.o
LD usr/built-in.o
AS arch/ppc/kernel/entry.o
CC arch/ppc/kernel/traps.o
CC arch/ppc/kernel/time.o
AS arch/ppc/kernel/misc.o
CC arch/ppc/kernel/setup.o
CC arch/ppc/kernel/ppc_htab.o
CC arch/ppc/kernel/ppc_ksyms.o
CC arch/ppc/kernel/dma-mapping.o
LD arch/ppc/kernel/built-in.o
AS arch/ppc/kernel/head_4xx.o
LDS arch/ppc/kernel/vmlinux.lds
CC arch/powerpc/kernel/semaphore.o
CC arch/powerpc/kernel/cputable.o
CC arch/powerpc/kernel/ptrace.o
CC arch/powerpc/kernel/syscalls.o
CC arch/powerpc/kernel/irq.o
CC arch/powerpc/kernel/align.o
CC arch/powerpc/kernel/signal_32.o
arch/powerpc/kernel/signal_32.c: In function `handle_rt_signal':
arch/powerpc/kernel/signal_32.c:763: error: request for member `vdso_base' in something not a structure or union
arch/powerpc/kernel/signal_32.c:766: error: request for member `vdso_base' in something not a structure or union
arch/powerpc/kernel/signal_32.c: In function `handle_signal':
arch/powerpc/kernel/signal_32.c:1037: error: request for member `vdso_base' in something not a structure or union
arch/powerpc/kernel/signal_32.c:1040: error: request for member `vdso_base' in something not a structure or union
make[1]: *** [arch/powerpc/kernel/signal_32.o] Fehler 1
make: *** [arch/powerpc/kernel] Fehler 2
Could someone please help me to interprete this error??
Could someone send me an working .config file for the kernel?
I would be more then happy when someone could help me!!
Thanks in advanced!!
greetings Robert Zach
heiguga@gmx.net
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
^ permalink raw reply
* RE: [PATCH/2.6.17-rc4 8/10] Add tsi108 8250 serial support
From: Zang Roy-r61911 @ 2006-06-15 11:04 UTC (permalink / raw)
To: Adrian Cox, Russell King
Cc: Alexandre.Bounine, linux-kernel, linuxppc-dev list,
Paul Mackerras, linux-serial, Yang Xin-Xin-r48390
>
> Perhaps you should define a new value for
> uart_8250_port.port.iotype, and add code to serial_in and
> serial_out to handle the IIR register.
>
> --
> Adrian Cox <adrian@humboldt.co.uk>
>
The following patch gets rid of CONFIG_TSI108_BRIDGE.
I add UPIO_TSI to handle IIR and IER register in serial_in and
serial_out.
(1) the reason to rewrite serial_in:
TSI108 rev Z1 version ERRATA. Reading the UART's Interrupt Identification Register (IIR) clears the Transmit
Holding Register Empty (THRE) and Transmit buffer Empty (TEMP) interrupts even if they are not enabled in
the Interrupt Enable Register (IER). This leads to loss of the interrupts. Interrupts are not cleared
when reading UART registers as 32-bit word.
(2) the reason to rewrite serial_out:
Check for UART_IER_UUE bit in the autoconfig routine. This section of autoconfig is excluded for
Tsi108/109 because bits 7 and 6 are reserved for internal use. They are R/W bits. In addition to
incorrect identification, changing these bits (from 00) will make Tsi108/109 UART non-functional.
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index bbf78aa..6343d7a 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -300,6 +300,7 @@ #endif
static unsigned int serial_in(struct uart_8250_port *up, int offset)
{
+ unsigned int tmp;
offset = map_8250_in_reg(up, offset) << up->port.regshift;
switch (up->port.iotype) {
@@ -317,6 +318,13 @@ #ifdef CONFIG_SERIAL_8250_AU1X00
case UPIO_AU:
return __raw_readl(up->port.membase + offset);
#endif
+
+ case UPIO_TSI:
+ if (offset == UART_IIR){
+ tmp = readl((u32 *)(up->port.membase + UART_RX)) ;
+ return (cpu_to_le32(tmp)>> 8) & 0xff;
+ }else
+ return readb(up->port.membase + offset);
default:
return inb(up->port.iobase + offset);
@@ -347,6 +355,10 @@ #ifdef CONFIG_SERIAL_8250_AU1X00
__raw_writel(value, up->port.membase + offset);
break;
#endif
+ case UPIO_TSI:
+ if (!((offset == UART_IER) && (value & UART_IER_UUE)))
+ writeb(value, up->port.membase + offset);
+ break;
default:
outb(value, up->port.iobase + offset);
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index bd14858..fcf48d3 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -224,6 +224,7 @@ #define UPIO_HUB6 (1)
#define UPIO_MEM (2)
#define UPIO_MEM32 (3)
#define UPIO_AU (4) /* Au1x00 type IO */
+#define UPIO_TSI (5) /* Tsi108/109 type IO */
unsigned int read_status_mask; /* driver specific */
unsigned int ignore_status_mask; /* driver specific */
^ permalink raw reply related
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox