Porting FreeBSD-S3c2410 - Root file system
M. Warner Losh
imp at bsdimp.com
Tue Jun 29 20:11:23 UTC 2010
In message: <AANLkTinxWmMnw3FaFOc20QqPLGHnPiEQNDeZwbZ-2WLK at mail.gmail.com>
Ho Van Than <hvanthan at gmail.com> writes:
: Hi,
:
: I did for Root File System follow command
:
: 1. make buildworld TARGET=arm TARGET_ARCH=arm TARGET_CPUTYPE=arm920t
:
: 2. make installworld TARGET=arm TARGET_ARCH=arm TARGET_CPUTYPE=arm920t
: DESTDIR=/path/to/root/fs
:
: 3. makefs -B little /path/to/root.ufs /path/to/root/fs
:
: 4. make buildkernel TARGET=arm KERNCONF=LN2410SBC DESTDIR=/root/kernel
: installkernel -DNO_MODULES MFS_IMAGE=/path/to/root.ufs
:
: After that I met problem
:
: MAKE=make sh /usr/src/sys/conf/newvers.sh LN2410SBC
: cc -mlittle-endian -c -O -pipe -std=c99 -g -Wall -Wredundant-decls
: -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
: -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions
: -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
: -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
: -finline-limit=8000 --param inline-unit-growth=100 --param
: large-function-growth=1000 -mcpu=arm920t -ffreestanding -Werror vers.c
: linking kernel.debug
: text data bss dec hex filename
: 2381094 126492 1515120 4022706 3d61b2 kernel.debug
: MFS image too large
: *** Error code 1
:
: Stop in /usr/obj/arm/usr/src/sys/LN2410SBC.
: *** Error code 1
:
: Stop in /usr/src.
: *** Error code 1
:
: Stop in /usr/src.
:
: Can you help me resolve that one.
Make the MFS larger. There's an option in the LN2410SBC config file.
options MD_ROOT_SIZE=4096 # 4MB ram disk
Or make time image smaller.
Warner
: Thanks.
:
: On Tue, Jun 29, 2010 at 2:59 PM, Ho Van Than <hvanthan at gmail.com> wrote:
:
: > Hi, Andrew
: >
: > Thanks for your good information about porting s3c24xx, I step by step do
: > porting work to our board s3c2440 (similar from http://www.yctek.com/),
: > but it's not success, can you give me some comment?
: >
: > I do like that
: >
: > 1. Install FreeBSD:
: > uname -a
: > FreeBSD com_BSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC
: > 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
: >
: > 2. Download source from http://svn.freebsd.org/base/head/sys
: >
: > 3. Compile
: > make kernel-toolchain TARGET=arm
: > make buildkernel TARGET=arm KERNCONF=LN2410SBC DESTDIR=/root/kernel
: > installkernel
: >
: > 4. Make image (That command I using Linux OS)
: > mkimage -A arm -O freebsd -T kernel -C none -a 30008000 -e 300080e0 -n
: > "FreeBSD" -d kernel kernel.boot
: >
: > 5. Running but can not,
: > utu-bootloader=>>>tftp 30000000 kernel.boot
: > dm9000 i/o: 0x18000300, id: 0x90000a46
: > MAC: 00:02:c2:00:d7:7f
: > TFTP from server 192.168.1.253; our IP address is 192.168.1.122
: > Filename 'kernel.boot'.
: > Load address: 0x30000000
: > Loading:
: > #################################################################
: > #################################################################
: > #################################################################
: > #################################################################
: > #################################################################
: > #################################################################
: > #################################################################
: > #################################################################
: > #################################################################
: > ##############################################################
: > done
: > Bytes transferred = 3312627 (328bf3 hex)
: > utu-bootloader=>>>
: >
: > utu-bootloader=>>>bootm
: > ## Booting image at 30000000 ...
: > Image Name: FreeBSD
: > Created: 2010-06-29 7:25:23 UTC
: > Image Type: ARM Unknown OS Kernel Image (uncompressed)
: > Data Size: 3312563 Bytes = 3.2 MB
: > Load Address: 30008000
: > Entry Point: 30008000
: > Verifying Checksum ... OK
: > OK
: >
: > Starting kernel ...
: >
: > undefined instruction
: > pc : [<3000808c>] lr : [<33f97e18>]
: > sp : 33d5fa84 ip : 33f9bd6c fp : 00000001
: > r10: 30000000 r9 : 30000100 r8 : 33d5ffdc
: > r7 : 33f9bd6c r6 : 00000000 r5 : 00000000 r4 : 00000000
: > r3 : 30008000 r2 : 30000100 r1 : 33d5ffdc r0 : 00000000
: > Flags: nZcv IRQs off FIQs off Mode SVC_32
: > Resetting CPU ...
: >
: >
: >
: > On Tue, Jun 29, 2010 at 2:00 PM, Andrew Turner <andrew at fubar.geek.nz>wrote:
: >
: >> On Tue, 29 Jun 2010 12:05:18 +0530
: >> Ravindra <ravindra.kulkarni at globaledgesoft.com> wrote:
: >>
: >> > Thanks Andrew,
: >> >
: >> > Also i have Linux PC and downloaded the FreeBSD, Can i build the
: >> > FreeBSD on my Linux PC, or i need to have separate system
: >> You will need a FreeBSD machine to build FreeBSD.
: >>
: >> > I would like to know the system requirements
: >> Any computer running FreeBSD 8.0 will be able to build the code.
: >>
: >> Andrew
: >>
: >> --
: >> Andrew Turner
: >> WhiteQueue Consulting http://whitequeue.com/
: >> Custom FreeBSD and Linux development
: >>
: >> _______________________________________________
: >> freebsd-arm at freebsd.org mailing list
: >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
: >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
: >>
: >
: >
: _______________________________________________
: freebsd-arm at freebsd.org mailing list
: http://lists.freebsd.org/mailman/listinfo/freebsd-arm
: To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
:
:
More information about the freebsd-arm
mailing list