Openrisc Linux Kernel Patches and Etc.

The following are my Openrisc patches to the linux kernel that I have run on the Opencores simulator.
These patches are forked from the 2.6.15.7 version available from Opencores or BSEMI.

I am currently using and testing Busybox-1.4.1 and Busybox-1.5.0 which I have running
on the ramdisks --this was built with uClibc-0.9.28.3 which is posted too.

Since you can get a 2.6.15.7 image from Opencores or BSEMI and ports to 2.6.16 from that
should be pretty trivial so I am starting here from 2.6.17.

All of my Linux ports/patches require 3 things:
1) You have to get fresh kernel source of the exact kernel version in the patch name(i.e. linux-2.6.x).
2) You must copy linux-2.6.x/rgd_dot_config(included in the patch) to .config.
3) You should download my ramdisk and copy this to linux-2.6.x/arch/or32/support/initrd-fb-03.ext2.bz2
After you copy the zipped ramdisk to the location you must unzip it i.e. bunzip2 initrd-fb-03.ext2.bz2.

After this you should be able to do a "make vmlinux" and you should have a runnable image.
Also note that I have modified the sim.cfg file to use tcp on port 84 so you should be able
to do something like telnet 127.0.0.1 84 to get console access.

Linux Patches

linux-2.6.17_or32-unified-simtested
linux-2.6.18_or32-unified-simtested
linux-2.6.19_or32-unified-simtested

uClibc Patches

uClibc-0.9.28-or32-unified
uClibc-0.9.28.3 libc supplemental

Toolchain Patches

binutils-2.16.1 fixes

Ramdisks

ramdisk_bb-1.4.1
ramdisk_bb-1.5.0

To Use (Linux patches)

a. Download/unzip/unpack MATCHING kernel source.
b. cd linux-2.6.x
c. bzip2 -dc ../whatever/linux_2.6.x_or32_unified_simtested.bz2 |patch -p1
d. cp rgd_dot_config .config
e. cp ../whatever/rgd_initrd-fb-03.ext2.bz2 arch/or32/support/initrd-fb-03.ext2.bz2
f. bunzip2 arch/or32/support/initrd-fb-03.ext2.bz2
g. make vmlinux ARCH=or32 CROSS_COMPILE=path_to_chain/whatever-
h. whatever-sim -f sim.cfg vmlinux
(note "whatever" is where you downloaded or installed it to)

To Use (uClibc-0.9.28.3 patches)

a. Download/unzip/unpack uClibc-0.9.28.3
b. cd uClibc-0.9.28.3/
c. bzip2 -dc ../whatever/uClibc-0.9.28-or32-unified.bz2 |patch -p1
d. cd libc
e. bzip2 -dc ../../whatever/uClibc-0.9.28-or32-libc-support.bz2
f. cd ../../
g. Follow the directions starting with the Config link here or here


This comes in handy if you are making kernel patches:
or32 Linux dontdiff

NOTICE

-- I make absolutely NO guarantees that any of this will work for you.
-- I work for money, if you REALLY need something fixed !RIGHT NOW! I do consulting.
-- The folks at ORSoC work for money --pay them and they might help you.
-- If something is broken I will try to fix it or help you fix it.
-- This is about free as in freedom not as in free beer --I DON'T DO HOMEWORK!!
-- Donate time to Opencores or get your company to donate or sponsor.
-- Donate time to Busybox/uClibc or get your company to donate or sponsor.

contact: rich_daddio@yahoo.com aka Rich d

test

Top