With this combined I am able to boot up Linux on an emulated Aspeed 2600
evaluation board and have the i2c echo device write into a Linux slave
EEPROM. Assuming the echo device is on address 0x42:
# echo slave-24c02 0x1064 > /sys/bus/i2c/devices/i2c-15/new_device
i2c i2c-15: new_device: Instantiated device slave-24c02 at 0x64
# i2cset -y 15 0x42 0x64 0x00 0xaa i
# hexdump /sys/bus/i2c/devices/15-1064/slave-eeprom
0000000 ffaa ffff ffff ffff ffff ffff ffff ffff
0000010 ffff ffff ffff ffff ffff ffff ffff ffff
*
0000100
I have started working on buildroot images :
https://github.com/legoater/buildroot/commits/aspeed
The resulting files are quite small :
$ ll output/images/
total 86040
drwxr-xr-x 2 legoater legoater 4096 Jun 1 20:01 ./
drwxrwxr-x 6 legoater legoater 4096 Jun 1 19:40 ../
-rwxr-xr-x 1 legoater legoater 36837 Jun 1 20:01
aspeed-ast2600-evb.dtb*
-rw-r--r-- 1 legoater legoater 67108864 Jun 1 20:01 flash.img
-rw-r--r-- 1 legoater legoater 6682796 Jun 1 20:01 image.itb
-rw-r--r-- 1 legoater legoater 1846 Jun 1 20:01 image.its
-rw-r--r-- 1 legoater legoater 3168768 Jun 1 20:01 rootfs.cpio
-rw-r--r-- 1 legoater legoater 1026660 Jun 1 20:01 rootfs.cpio.xz
-rw-r--r-- 1 legoater legoater 3788800 Jun 1 20:01 rootfs.tar
-rw-r--r-- 1 legoater legoater 653777 Jun 1 20:00 u-boot.bin
-rw-r--r-- 1 legoater legoater 5617280 Jun 1 20:01 zImage
I will probably host them on GH and we could use them under avocado
to extend the tests.
They should boot real HW. I will submit the defconfigs to buildroot
after more tests and cleanups.