{"action":"created","issue":{"url":"https://api.github.com/repos/igorpecovnik/lib/issues/231","repository_url":"https://api.github.com/repos/igorpecovnik/lib","labels_url":"https://api.github.com/repos/igorpecovnik/lib/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/igorpecovnik/lib/issues/231/comments","events_url":"https://api.github.com/repos/igorpecovnik/lib/issues/231/events","html_url":"https://github.com/igorpecovnik/lib/issues/231","id":141553448,"number":231,"title":"Board auto detection broken by design","user":{"login":"ThomasKaiser","id":12658961,"avatar_url":"https://avatars.githubusercontent.com/u/12658961?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasKaiser","html_url":"https://github.com/ThomasKaiser","followers_url":"https://api.github.com/users/ThomasKaiser/followers","following_url":"https://api.github.com/users/ThomasKaiser/following{/other_user}","gists_url":"https://api.github.com/users/ThomasKaiser/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasKaiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasKaiser/subscriptions","organizations_url":"https://api.github.com/users/ThomasKaiser/orgs","repos_url":"https://api.github.com/users/ThomasKaiser/repos","events_url":"https://api.github.com/users/ThomasKaiser/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasKaiser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-17T11:17:56Z","updated_at":"2016-04-20T04:45:25Z","closed_at":null,"body":"Relying on the presence of certain hardware features like internal Terminus USB hub turns out to be [wrong](http://www.cnx-software.com/2016/03/16/orange-pi-one-board-quick-start-guide-with-armbian-debian-based-linux-distribution/#comment-524012).\r\n\r\nA shortterm solution would be to either create images for every board individually again or tweak our build process so that a not yet implemented final install hook takes one base image and replaces script.bin/dtb stuff, cpufreq and /etc/modules (that should be all that's needed to serve H3 and A20 boards, haven't thought about the others yet) or do it as now and use another platform specific hook in [check_first_login.sh](https://github.com/igorpecovnik/lib/blob/master/scripts/check_first_login.sh) to let the user choose the board in question.\r\n\r\nA midterm solution could be something [ssvb outlined/prepared over a year ago](http://lists.denx.de/pipermail/u-boot/2015-January/202306.html). We could already do this type of detection/choice from within u-boot (USB works now also with H3 [1]). But IMO it's no good idea to loose the ability to setup a device headless since this is one of the reasons I chose Armbian in the beginning. We're not in a hurry and should weigh the pros/cons with care.\r\n\r\nBut regarding the shortterm solution blowing up _configuration.sh_ again (containing all Bananas/Oranges indivudally again) seems easy but still requires some hackish workarounds (we use one single .dtb for all Oranges != Plus since... it just works). So what about taking the time and exploring whether we could implement this sort of 'final step' and being able to just select 'H3', let a single image create and in a final step insert all the needed stuff for the individual boards in a few seconds?\r\n\r\n[1] Console output with 2016.03 on Orange Pi PC:\r\n\r\n    U-Boot 2016.03-armbian (Mar 17 2016 - 11:23:31 +0100) Allwinner Technology\r\n    \r\n    CPU:   Allwinner H3 (SUN8I)\r\n    ...\r\n    starting USB...\r\n    USB0:   USB EHCI 1.00\r\n    USB1:   USB OHCI 1.0\r\n    USB2:   USB EHCI 1.00\r\n    USB3:   USB OHCI 1.0\r\n    USB4:   USB EHCI 1.00\r\n    USB5:   USB OHCI 1.0\r\n    scanning bus 0 for devices... 4 USB Device(s) found\r\n    scanning bus 2 for devices... 1 USB Device(s) found\r\n    scanning bus 4 for devices... 1 USB Device(s) found"},"comment":{"url":"https://api.github.com/repos/igorpecovnik/lib/issues/comments/212255590","html_url":"https://github.com/igorpecovnik/lib/issues/231#issuecomment-212255590","issue_url":"https://api.github.com/repos/igorpecovnik/lib/issues/231","id":212255590,"user":{"login":"igorpecovnik","id":6281704,"avatar_url":"https://avatars.githubusercontent.com/u/6281704?v=3","gravatar_id":"","url":"https://api.github.com/users/igorpecovnik","html_url":"https://github.com/igorpecovnik","followers_url":"https://api.github.com/users/igorpecovnik/followers","following_url":"https://api.github.com/users/igorpecovnik/following{/other_user}","gists_url":"https://api.github.com/users/igorpecovnik/gists{/gist_id}","starred_url":"https://api.github.com/users/igorpecovnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorpecovnik/subscriptions","organizations_url":"https://api.github.com/users/igorpecovnik/orgs","repos_url":"https://api.github.com/users/igorpecovnik/repos","events_url":"https://api.github.com/users/igorpecovnik/events{/privacy}","received_events_url":"https://api.github.com/users/igorpecovnik/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T04:45:25Z","updated_at":"2016-04-20T04:45:25Z","body":"Our primary problem is with legacy kernel where such file don't exists. We were trying to narrow down the number of images with auto selecting proper board config at first boot. Unfortunately it's not reliable  method so only alternative left is to ask user - choose your board at first login ... "}}