After Week 1 (31 May - 7 June)
What is done:
-
created wiki page and github repository
-
created an introduction video
-
created pinmap file to BeagleWire (https://github.com/pmezydlo/BeagleWire/blob/master/beaglewire_pinmap.pcf)
-
created ICE40 overlay (https://github.com/pmezydlo/BeagleWire/blob/bw_bridge_irq/DTS/ice40-overlay-00A0.dts)
-
added first example and makefile for it, (not tested, only synthesized on pc) (https://github.com/pmezydlo/BeagleWire/tree/bw_bridge_irq/example)
Issues:
I solved the problem regarding compatibility of drivers, in old kernel in dts there
was “compatible = “linux,spidev”;” and now it should be “compatible = “spidev”;”
On kernel 4.4, loading custom cape works very well but I still have a problem with kernel 4.12.
It seems that uboot is not reading /boot/uEnv.txt file. Do you have any idea on how to solve this problem?
My ftdi output:
U-Boot SPL 2017.03-dirty (May 27 2017 - 13:06:39)
Trying to boot from MMC1
U-Boot 2017.03-dirty (May 27 2017 - 13:06:39 +0200)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
Reset Source: Power-on reset has occurred.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment
not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] …
board_rev=[00C0] …
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt …
1358 bytes read in 8 ms (165 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc …
Checking if uenvcmd is set …
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd …
146 bytes read in 18 ms (7.8 KiB/s)
debug: [/boot/vmlinuz-4.12.0-rc2-bone0] …
8409136 bytes read in 548 ms (14.6 MiB/s)
debug: [/boot/initrd.img-4.12.0-rc2-bone0] …
5871791 bytes read in 390 ms (14.4 MiB/s)
debug: [/boot/dtbs/4.12.0-rc2-bone0/am335x-boneblack.dtb] …
55025 bytes read in 50 ms (1 MiB/s)
debug: [console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] …
debug: [bootz 0x82000000 0x88080000:5998af 0x88000000] …
Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Using Device Tree in place at 88000000, end 880106f0
Starting kernel …
My /boot/uEnv.txt file:
uname_r=4.12.0-rc2-bone0
enable_uboot_overlays=1
uboot_overlay_addr0=/lib/firmware/CUS_SPI-00A0.dtbo
cmdline=coherent_pool=1M net.ifnames=0 quiet
Next weak goals:
- first BeagleWire programming using ice40-mgr
- porting toolchain
Thanks,
Patryk