OLIMEX / DIY-LAPTOP

Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop
Apache License 2.0
495 stars 89 forks source link

Build problems #6

Closed khumarahn closed 6 years ago

khumarahn commented 6 years ago

Hi, I tried to follow the linux building instructions in https://github.com/OLIMEX/DIY-LAPTOP/blob/master/SOFTWARE/A64-TERES/scripts/readme.md

I am not an expert at all. I have a few comments/questions:

(EDIT):

khumarahn commented 6 years ago

Also,

Here I am not sure what's going on. Is it safe to add mtools_skip_check=1 to .mtoolsrc?

hehopmajieh commented 6 years ago

Hi Alexey, since we need 32 bit SPL/boot0 to get u-boot running/64 bit compiler exeeds 32k size of boot0/, we must use 32 bit compiler. Did you clone proper sunxi-pack-tools branch /this branch is forked from longsleep, as working/.

Best regards, Dimitar

On 28 Oct 2017 17:12, "Alexey Korepanov" notifications@github.com wrote:

Also,

  • ./make_simpleimage.sh teres.img 1000 ./linux-a64-3.10.104-1.tar.xz fails with

Creating teres image teres.img of size 1000 MiB ... Using Kernel from ./linux-a64-3.10.104-1.tar.xz ... 20+0 records in 20+0 records out 20971520 bytes (21 MB, 20 MiB) copied, 0.0116583 s, 1.8 GB/s 48+0 records in 48+0 records out 49152 bytes (49 kB, 48 KiB) copied, 0.00029765 s, 165 MB/s 960+0 records in 960+0 records out 983040 bytes (983 kB, 960 KiB) copied, 0.002399 s, 410 MB/s 50+0 records in 50+0 records out 52428800 bytes (52 MB, 50 MiB) copied, 0.0262658 s, 2.0 GB/s mkfs.fat 4.0 (2016-05-06) Total number of sectors (102400) not a multiple of sectors per track (63)! Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

Here I am not sure what's going on. Is it safe to add mtools_skip_check=1 to .mtoolsrc?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OLIMEX/DIY-LAPTOP/issues/6#issuecomment-340194240, or mute the thread https://github.com/notifications/unsubscribe-auth/ABrmZV3tnvQtPtEc_3j1mHmcTz0biNaKks5swzY1gaJpZM4QJ7yO .

khumarahn commented 6 years ago

ok, thanks for the explanation about the 32 bit compiler. I hope that the requirement for the old gcc-4.7 can be lifted at some point.

I didn't quite understand you about sunxi-pack-tools. I couldn't make work the version from here https://github.com/OLIMEX/DIY-LAPTOP/tree/master/SOFTWARE/A64-TERES/sunxi-pack-tools (error is in the first post). Maybe it needs to be updated with a newer one from longsleep's repo?

hehopmajieh commented 6 years ago

Hi Alexey, i agree with you, i also finding some typos in this instructions. I will do my best to fix it tomorrow. Thank you.

On 29 Oct 2017 22:01, "Alexey Korepanov" notifications@github.com wrote:

Reopened #6 https://github.com/OLIMEX/DIY-LAPTOP/issues/6.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OLIMEX/DIY-LAPTOP/issues/6#event-1315678534, or mute the thread https://github.com/notifications/unsubscribe-auth/ABrmZWXz12D4-pmOE_hdkzZyQXGtSFsuks5sxNmVgaJpZM4QJ7yO .

khumarahn commented 6 years ago

Something else missing in the instructions:

# cat /etc/udev/hwdb.d/teres_kbd.hwdb 
evdev:input:b0003v15BAp003C*
  KEYBOARD_KEY_7006f=brightnessdown
  KEYBOARD_KEY_70070=brightnessup
hehopmajieh commented 6 years ago

Readme is up to date, and i think everything should work as expected.