- How to port u-boot to a new platform
Scenario
Project Name: realview_pb11mp
ARCH: arm
CPU: armct_rv
Board Name: realview_pb
Porting Procedure
In Brief :
[ ]# wget http://ftp.denx.de/pub/u-boot/u-boot-1.3.1.tar.bz2
[ ]# wget u-boot-mpcore.patch.gz
[ ]# tar jxvf u-boot-1.3.1.tar.bz2
[ ]# mv u-boot-1.3.1 u-boot-1.3.1-mpcore
[ ]# cd u-boot-1.3.1-mpcore
[ ]# zcat ../u-boot-mpcore.patch.gz | patch -p1
[ ]# make realview_pb11mp_config
[ ]# make
[ ]# cp u-boot u-boot.axf
Patched Files List :
patching file board/realview_pb/config.mk
patching file board/realview_pb/lowlevel_init.S
patching file board/realview_pb/Makefile
patching file board/realview_pb/realview_pb.c
patching file board/realview_pb/split_by_variant.sh
patching file board/realview_pb/u-boot.lds.template
patching file cpu/armct_rv/config.mk
patching file cpu/armct_rv/cpu.c
patching file cpu/armct_rv/interrupts.c
patching file cpu/armct_rv/Makefile
patching file cpu/armct_rv/start.S
patching file doc/README-realview_pb
patching file drivers/net/Makefile
patching file drivers/net/smc9118.c
patching file drivers/net/smc9118.h
patching file drivers/net/smc_rv.c
patching file drivers/net/smc_rv.h
patching file include/armsupplied.h
patching file include/asm-arm/div64.h
patching file include/asm-arm/mach-types.h
patching file include/configs/realview_pb.h
patching file lib_arm/armlinux.c
patching file lib_arm/div64.S
patching file lib_arm/Makefile
patching file MAKEALL
patching file Makefile
In Detail :
Affected directories in porting a new ARM processor design are:
board, cpu, include, and lib_arm. (and maybe drivers) All other directories remain the same for any architectures.
mkconfig -a realview_pb arm armct_rv realview_pb
SYNOPSIS:
mkconfig -a BOARD_NAME ARCH CPU BOARD [VENDOR] [SOC]
A board/realview_pb/u-boot.lds
A nclude/config.h
A include/config.mk
L include/asm -> include/asm-arm
L include/asm-arm/arch -> include/asm-arm/arch-armct_rv
L include/asm-arm/proc -> include/asm-arm/proc-armv
1 comment:
Could you help me with the second step in porting. I dont understand what link i must wget the patch file from for uboot.
Post a Comment