Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2012 19:07:55 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Hans Stimer <hans.stimer@gmail.com>
Cc:        arm@freebsd.org
Subject:   Re: freebsd-beaglebone install problem
Message-ID:  <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com>
In-Reply-To: <DD05E72B9F474BFE96B6A4B050D2A18A@gmail.com>
References:  <DD05E72B9F474BFE96B6A4B050D2A18A@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sep 4, 2012, at 4:17 PM, Hans Stimer wrote:

> I'm running into problems getting FreeBSD working on the BeagleBone.
>=20
> I followed the instructions here =
https://github.com/kientzle/freebsd-beaglebone
>=20
> I didn't get any errors, but the BB isn't responding at the terminal:
>=20
>> # cu -l /dev/ttyU1 -s 115200
>> Connected
>> CCCCCCCC

Oh xmodem, I know ye well.  This means that the card is in some recovery =
mode or another...

Warner

>=20
>=20
> It appears that volumes were created properly on the SD card:
>=20
>> # fdisk -s /dev/da1
>> /dev/da1: 474 cyl 255 hd 63 sec
>> Part        Start        Size Type Flags
>>   1:          66        4092 0x0c 0x80
>>   2:        4158     7613001 0xa5 0x00
>>=20
>=20
>=20
> And as best I can tell, the right files are in place:
>=20
>> # ls -laG /mnt/fat
>> total 761
>> drwxr-xr-x  1 root  wheel   16384 Dec 31  1979 .
>> drwxr-xr-x  4 root  wheel     512 Sep  4 14:47 ..
>> drwxr-xr-x  1 root  wheel     512 Sep  4 14:31 .Trashes
>> -rwxr-xr-x  1 root  wheel    4096 Sep  4 14:31 ._.Trashes
>> drwxr-xr-x  1 root  wheel     512 Sep  4 14:31 .fseventsd
>> -rwxr-xr-x  1 root  wheel   13320 Sep  4 10:06 LOADER.HEL
>> -rwxr-xr-x  1 root  wheel  738490 Sep  4 10:06 UBLDR
>> -rwxr-xr-x  1 root  wheel     118 Sep  4 10:06 UENV.TXT
>>=20
>> # ls -laG /mnt/ufs
>> total 4216
>> drwxr-xr-x  18 hans  hans         1024 Sep  4 10:07 .
>> drwxr-xr-x   4 root  wheel         512 Sep  4 14:47 ..
>> -rw-r--r--   2 root  wheel        1005 Sep  4 10:07 .cshrc
>> -rw-r--r--   2 root  wheel         247 Sep  4 10:07 .profile
>> drwxrwxr-x   2 root  operator      512 Sep  4 10:06 .snap
>> -r--------   1 root  wheel     4194304 Sep  4 10:06 .sujournal
>> -r--r--r--   1 root  wheel        6194 Sep  4 10:07 COPYRIGHT
>> drwxr-xr-x   2 root  wheel        1024 Sep  4 10:06 bin
>> drwxr-xr-x   7 root  wheel         512 Sep  4 10:07 boot
>> dr-xr-xr-x   2 root  wheel         512 Sep  4 10:06 dev
>> drwxr-xr-x  20 hans  hans         2048 Sep  4 10:07 etc
>> drwxr-xr-x   3 root  wheel        1536 Sep  4 10:06 lib
>> drwxr-xr-x   3 root  wheel         512 Sep  4 10:06 libexec
>> drwxr-xr-x   2 root  wheel         512 Sep  4 10:06 media
>> drwxr-xr-x   2 root  wheel         512 Sep  4 10:06 mnt
>> dr-xr-xr-x   2 root  wheel         512 Sep  4 10:06 proc
>> drwxr-xr-x   2 root  wheel        2560 Sep  4 10:06 rescue
>> drwxr-xr-x   2 root  wheel         512 Sep  4 10:07 root
>> drwxr-xr-x   2 root  wheel        2560 Sep  4 10:07 sbin
>> lrwxr-xr-x   1 root  wheel          11 Sep  4 10:07 sys -> =
usr/src/sys
>> drwxrwxrwt   2 root  wheel         512 Sep  4 10:06 tmp
>> drwxr-xr-x  14 root  wheel         512 Sep  4 10:06 usr
>> drwxr-xr-x  23 root  wheel         512 Sep  4 10:06 var
>>=20
>>=20
>=20
>=20
> I checked the logs, and this one stood out:
>=20
>> # less _.uboot.build.log=20
>> Generating include/autoconf.mk
>> include/common.h:43:20: error: stdarg.h: No such file or directory
>> In file included from include/image.h:36,
>>                 from include/common.h:117:
>> include/compiler.h:8:20: error: stddef.h: No such file or directory
>> Generating include/autoconf.mk.dep
>> include/common.h:43:20: error: stdarg.h: No such file or directory
>> In file included from include/image.h:36,
>>                 from include/common.h:117:
>> include/compiler.h:8:20: error: stddef.h: No such file or directory
>> arm-freebsd-gcc -DDO_DEPS_ONLY \
>>        -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ =
-DCONFIG_SYS_TEXT_BASE=3D0x80100000 -DCONFIG_SPL_TEXT_BASE=3D0x402F0400 =
-I/usr/home/hans/extern/freebsd-beaglebone/u-boot/include -fno-builtin =
-ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ =
-marm  -mabi=3Daapcs-linux -mno-thumb-interwork -march=3Darmv5 -Wall =
-Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral =
-Wno-format-security   \
>>        -o lib/asm-offsets.s lib/asm-offsets.c -c -S
>> In file included from lib/asm-offsets.c:18:
>> include/common.h:43:20: error: stdarg.h: No such file or directory
>> In file included from include/image.h:36,
>>                 from include/common.h:117,
>>                 from lib/asm-offsets.c:18:
>> include/compiler.h:8:20: error: stddef.h: No such file or directory
>> In file included from lib/asm-offsets.c:18:
>> include/common.h:687: error: expected declaration specifiers or '...' =
before 'va_list'
>> In file included from lib/asm-offsets.c:18:
>> include/common.h:719: error: expected declaration specifiers or '...' =
before 'va_list'
>> gmake: *** [lib/asm-offsets.s] Error 1
>>=20
>>=20
>=20
>=20
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0DCAC001-FF06-431A-A486-2B50BE913B0D>