* [PATCH]: linux-2.5.46-uc0 (MMU-less fixups)
@ 2002-11-05 7:50 gerg
2002-11-05 9:22 ` Miles Bader
0 siblings, 1 reply; 3+ messages in thread
From: gerg @ 2002-11-05 7:50 UTC (permalink / raw)
To: linux-kernel
Hi All,
Here is a much reduced set of MMU-less fixups for 2.5.46 :-)
Now that the majority of the code is in there is just a few
little things missing and some clean ups.
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0.patch.gz
Change log:
1. patch against 2.5.46
2. add MAC setting support to fec driver
3. clean up ColdFire entry.S (more to come)
You can get smaller patches here:
. FEC (5272) patch
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0-fec.patch.gz
. 68k/ColdFire/v850 serial drivers
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0-serial.patch.gz
. 68328 frame buffer driver
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0-fb.patch.gz
. m68knommu patches
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0-m68knommu.patch.gz
. v850 patches
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0-v850.patch.gz
. missing no MM peices (some mm/, /kernel and /fs/proc files)
http://www.uclinux.org/pub/uClinux/uClinux-2.5.x/linux-2.5.46-uc0-mm.patch.gz
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Wizard EMAIL: gerg@snapgear.com
SnapGear Pty Ltd PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: www.SnapGear.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH]: linux-2.5.46-uc0 (MMU-less fixups)
2002-11-05 7:50 [PATCH]: linux-2.5.46-uc0 (MMU-less fixups) gerg
@ 2002-11-05 9:22 ` Miles Bader
2002-11-05 14:35 ` Greg Ungerer
0 siblings, 1 reply; 3+ messages in thread
From: Miles Bader @ 2002-11-05 9:22 UTC (permalink / raw)
To: gerg; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 64 bytes --]
Here's a v850 update for 2.5.46-uc0.
Thanks,
-Miles
Patch:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: linux-2.5.46-uc0-v850-20021105-dist.patch --]
[-- Type: text/x-patch, Size: 6130 bytes --]
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/Makefile arch/v850/Makefile
--- ../orig/linux-2.5.46-uc0/arch/v850/Makefile 2002-11-05 11:25:21.000000000 +0900
+++ arch/v850/Makefile 2002-11-05 17:45:00.000000000 +0900
@@ -22,6 +22,8 @@
CFLAGS += -fno-builtin
CFLAGS += -D__linux__ -DUTS_SYSNAME=\"uClinux\"
+ARCHBLOBLFLAGS := -I binary -O elf32-little -B v850e
+
HEAD := $(arch_dir)/kernel/head.o $(arch_dir)/kernel/init_task.o
core-y += $(arch_dir)/kernel/
@@ -40,10 +42,8 @@
# This results in it being built anew each time, but that's alright.
root_fs_image.o: root_fs_image_force
-# Note that we use the build-system's objcopy, as the v850 tools are fairly
-# old, and don't have the --rename-section option.
root_fs_image_force: $(ROOT_FS_IMAGE)
- objcopy -I binary -O elf32-little -B i386 --rename-section .data=.root,alloc,load,readonly,data,contents $< root_fs_image.o
+ $(OBJCOPY) $(ARCHBLOBLFLAGS) --rename-section .data=.root,alloc,load,readonly,data,contents $< root_fs_image.o
endif
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/anna-rom.ld arch/v850/anna-rom.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/anna-rom.ld 2002-11-05 11:25:21.000000000 +0900
+++ arch/v850/anna-rom.ld 2002-11-05 17:53:54.000000000 +0900
@@ -80,6 +80,11 @@
__root_fs_image_start = . ;
*(.root)
__root_fs_image_end = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
} > ROM
__rom_copy_src_start = . ;
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/anna.ld arch/v850/anna.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/anna.ld 2002-11-05 11:25:21.000000000 +0900
+++ arch/v850/anna.ld 2002-11-05 17:55:17.000000000 +0900
@@ -103,6 +103,12 @@
*(.initcall7.init)
. = ALIGN (4) ;
___initcall_end = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
+
__init_end = . ;
__kram_end = . ;
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/kernel/irq.c arch/v850/kernel/irq.c
--- ../orig/linux-2.5.46-uc0/arch/v850/kernel/irq.c 2002-11-05 11:25:22.000000000 +0900
+++ arch/v850/kernel/irq.c 2002-11-05 17:32:20.000000000 +0900
@@ -252,7 +252,7 @@
unsigned int status;
irq_enter();
- kstat.irqs[cpu][irq]++;
+ kstat_cpu(cpu).irqs[irq]++;
spin_lock(&desc->lock);
desc->handler->ack(irq);
/*
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/rte_ma1_cb-ksram.ld arch/v850/rte_ma1_cb-ksram.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/rte_ma1_cb-ksram.ld 2002-11-05 11:25:22.000000000 +0900
+++ arch/v850/rte_ma1_cb-ksram.ld 2002-11-05 17:50:48.000000000 +0900
@@ -93,6 +93,11 @@
*(.initcall7.init)
. = ALIGN (4) ;
___initcall_end = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
} > SRAM
/* This provides address at which the interrupt vectors are
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/rte_ma1_cb-rom.ld arch/v850/rte_ma1_cb-rom.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/rte_ma1_cb-rom.ld 2002-11-05 11:25:22.000000000 +0900
+++ arch/v850/rte_ma1_cb-rom.ld 2002-11-05 17:54:54.000000000 +0900
@@ -45,9 +45,14 @@
___stop___ksymtab = . ;
. = ALIGN (4) ;
__etext = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
} > ROM
- __data_load_start = . ;
+ __rom_copy_src_start = . ;
.data : {
__kram_start = . ;
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/rte_ma1_cb.ld arch/v850/rte_ma1_cb.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/rte_ma1_cb.ld 2002-11-05 11:25:22.000000000 +0900
+++ arch/v850/rte_ma1_cb.ld 2002-11-05 17:50:27.000000000 +0900
@@ -98,6 +98,11 @@
*(.initcall7.init)
. = ALIGN (4) ;
___initcall_end = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
} > SDRAM
/* This provides address at which the interrupt vectors are
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/sim.ld arch/v850/sim.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/sim.ld 2002-11-05 11:25:22.000000000 +0900
+++ arch/v850/sim.ld 2002-11-05 17:52:44.000000000 +0900
@@ -96,6 +96,12 @@
*(.initcall7.init)
. = ALIGN (4) ;
___initcall_end = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
+
__init_end = . ;
__kram_end = . ;
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/arch/v850/sim85e2c.ld arch/v850/sim85e2c.ld
--- ../orig/linux-2.5.46-uc0/arch/v850/sim85e2c.ld 2002-11-05 11:25:22.000000000 +0900
+++ arch/v850/sim85e2c.ld 2002-11-05 17:53:16.000000000 +0900
@@ -86,6 +86,12 @@
*(.initcall7.init)
. = ALIGN (4) ;
___initcall_end = . ;
+
+ . = ALIGN (4096) ;
+ ___initramfs_start = . ;
+ *(.init.initramfs)
+ ___initramfs_end = . ;
+
__init_end = . ;
} > IRAM
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/drivers/serial/nb85e_uart.c drivers/serial/nb85e_uart.c
--- ../orig/linux-2.5.46-uc0/drivers/serial/nb85e_uart.c 2002-11-05 16:58:31.000000000 +0900
+++ drivers/serial/nb85e_uart.c 2002-11-05 17:37:51.000000000 +0900
@@ -304,7 +304,7 @@
port->icount.tx++;
if (uart_circ_chars_pending (xmit) < WAKEUP_CHARS)
- uart_event (port, EVT_WRITE_WAKEUP);
+ uart_write_wakeup (port);
}
no_xmit:
diff -ruN -X../cludes ../orig/linux-2.5.46-uc0/include/asm-v850/percpu.h include/asm-v850/percpu.h
--- ../orig/linux-2.5.46-uc0/include/asm-v850/percpu.h 2002-11-05 11:25:32.000000000 +0900
+++ include/asm-v850/percpu.h 2002-11-05 18:03:44.000000000 +0900
@@ -3,4 +3,12 @@
#include <asm-generic/percpu.h>
+/* This is a stupid hack to satisfy some grotty implicit include-file
+ dependency; basically, <linux/smp.h> uses BUG_ON, which calls BUG, but
+ doesn't include the necessary headers to define it. In the twisted
+ festering mess of includes this must all be resolved somehow on other
+ platforms, but I haven't the faintest idea how, and don't care; here will
+ do, even though doesn't actually make any sense. */
+#include <asm/page.h>
+
#endif /* __V850_PERCPU_H__ */
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
--
"Most attacks seem to take place at night, during a rainstorm, uphill,
where four map sheets join." -- Anon. British Officer in WW I
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH]: linux-2.5.46-uc0 (MMU-less fixups)
2002-11-05 9:22 ` Miles Bader
@ 2002-11-05 14:35 ` Greg Ungerer
0 siblings, 0 replies; 3+ messages in thread
From: Greg Ungerer @ 2002-11-05 14:35 UTC (permalink / raw)
To: Miles Bader; +Cc: linux-kernel
Hi Miles,
Miles Bader wrote:
> Here's a v850 update for 2.5.46-uc0.
Got it.
Thanks
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Wizard EMAIL: gerg@snapgear.com
Snapgear Pty Ltd PHONE: +61 7 3279 1822
825 Stanley St, FAX: +61 7 3279 1820
Woolloongabba, QLD, 4102, Australia WEB: www.SnapGear.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-05 14:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-05 7:50 [PATCH]: linux-2.5.46-uc0 (MMU-less fixups) gerg
2002-11-05 9:22 ` Miles Bader
2002-11-05 14:35 ` Greg Ungerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox