Sign inSign up

os369510/bfin-bf609

By os369510

•Updated about 7 years ago

docker image for building blackfin bf609

Image
0

1.5K

os369510/bfin-bf609 repository overview

⁠Usage

[Host] Building Image

docker pull os369510/bfin-bf609
git clone https://github.com/os369510/bfin-bf609.git
bash docker-run.sh docker os369510/bfin-bf609
git clone https://git.code.sf.net/p/adi-buildroot/code adi-buildroot-code -b 2014R1
git clone https://git.code.sf.net/p/adi-linux/code adi-buildroot/linux/linux-kernel -b 2014R1
make bf609-ezkit_config
make
make linux-dirclean
make linux-rebuild

[Target] Using Image

---uboot---
bfin> ext2ls mmc 0
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
        10222811 uImage
bfin> ext2load mmc 0 0x1000000 uImage
bfin> bootm
---shell---

⁠Fix building buildroot failure

1. Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/${ <-- HERE ([^ \t=:+{}]+)}/ at /home/jeremysu/adi-buildroot-code/output/host/usr/bin/automake line 4159.

Ans:
replace '{' by "{" within "adi-buildroot-code/output/host/usr/bin/automake"


2. Building ncurses failed, log shows:

In file included from ../ncurses/curses.priv.h:283:0,
                 from ../ncurses/lib_gen.c:19:
_32530.c:835:15: error: expected ')' before 'int'

Modification for fixing⁠


3. Building lzo failed, log shows:

checking whether to build assembly versions... no
checking whether your compiler passes the ACC conformance test... FAILED

Modification for fixing⁠


4. Building host-mtd 1.5.0 failed

Ans:
1. mark '__USE_XOPEN2K' and corresponding #endif within /usr/include/netdb.h
2. remove 'extern' from "host-mtd-1.5.0/mkfs.ubifs/hashtable/hashtable_itr.h"

⁠Customize configuration and Enablement

⁠TFTP setup (on my Arch)

$ cat /etc/xinetd.d/tftp
service tftp
{
	socket_type	= dgram
	protocol	= udp
	wait		= yes
	user		= nobody
	server		= /usr/sbin/in.tftpd
	server_args	= -s -c /srv/tftp/
	disable		= no
}
$ cat /usr/lib/systemd/tftpd.service
[Unit]
Description=hpa's original TFTP daemon
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/tftpd
ExecStart=/usr/bin/in.tftpd --listen $TFTPD_ARGS

[Install]
WantedBy=multi-user.target
$ cat /etc/conf.d/tftpd
TFTPD_ARGS="--secure /srv/tftp/"

on Client

root:/> tftp -g -r test 192.168.10.1  69

⁠Configurations

in host:

ip addr add 192.168.10.1/24 dev enp0s31f6;

in u-boot:
in system:

ip addr add 192.168.10.2/24 dev eth0;
ip link set eth0 up
ip route add default via 192.168.10.1 dev eth0;

⁠Flash bootloader in Windows

cldp -proc ADSP-BF609 -emu kit -driver "J:\BF609\falsh driver\bf609_pc28f128p33_dpia.dxe" -cmd info -cmd prog -erase all -format bin -file "J:\BF609\uBoot\u-boot-bf609-ezkit-spi-2014R1.ldr" -cmd compare -format bin -file "J:\BF609\uBoot\u-boot-bf609-ezkit-spi-2014R1.ldr"

⁠Reference

⁠Documents
⁠Problems has been solved
Ack! Something bad happened to the Blackfin!
...
kgdb: handle_exception; trap [0x4]
⁠Online helper
⁠Booting with Blackfin
⁠U-boot
⁠Buildroot
⁠Blackfin on Linux

The current status:
LCD driver failed to initialized LCD board, maybe need to study the spec of LCD.
I decide to stop this job due to Linux is not longer support blackfin.

Tag summary

Content type

Image

Digest

Size

394.5 MB

Last updated

about 7 years ago

docker pull os369510/bfin-bf609