kekiefer / tinyfpga-litex

A minimal LiteX SoC definition for the TinyFPGA BX
14 stars 1 forks source link

ubuntu incompatibility #1

Closed keesj closed 5 years ago

keesj commented 5 years ago

Hi

I am trying out your code. What operating system are you using for development? my dd (under ubuntu) does not support oseek (seek is preferred) but also the hex input 0x8000 is not supported (I had to convert it to base 10)

https://github.com/kekiefer/tinyfpga-litex/blob/3ea6ca5ae6ffc33c67329e7bae575cf359e01aaf/firmware/Makefile#L21

python3 -m litex.soc.tools.mkmscimg -f firmware.bin -o firmware.fbi
dd if=../bios/bios.bin of=../userdata.bin bs=0x8000 count=1
dd: warning: ‘0x’ is a zero multiplier; use ‘00x’ if that is intended
dd: invalid number: ‘0x8000’
kekiefer commented 5 years ago

This was from dd on macos. I tried this on debian and have the same problem as you. This should work:

dd if=firmware.fbi of=../userdata.bin bs=32768 seek=1 count=21 
nanortemis commented 5 years ago

Hi,

I have the same issue, could you fix it permanently in the repo?

keesj commented 5 years ago

Opened the issue so it can be tracked

kekiefer commented 5 years ago

Thanks @keesj this one would have slipped through the cracks. Should be fixed now.

nanortemis commented 5 years ago

Hi, Could you also replace 0x8000 with 32768?, because:

dd: warning: ‘0x’ is a zero multiplier; use ‘00x’ if that is intended dd: invalid number: ‘0x8000

kekiefer commented 5 years ago

Thanks, should be set now.