New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after dist-upgrade "A start job is running for lsb: raise network interface" @boot #111
Comments
Jessie and dist-upgrade is not a good combination. Probably this is the problem: |
I took the latest 4.4 armbian & built from source & installed on a fresh SD card to boot my Lamobo-R1 - I'm also stuck with same issue as above. (It was not a upgrade). I tried using a STATIC configuration for the interfaces.default instead of dhcp - with that it was able to continue further but I got a [FAILED] Failed to start Login Service. It halted here and when I did a power reset - it goes thro without errors - but I'm NOT able to LOGIN |
Ethernet is not brought up because RTC has invalid data ... I haven't got time to investigate what is the real reason behind, but if you set RTC before bringing eth up, than things works. I made simple workaround for Wheezy and Trusty but that one doesn't work here because of systemd. I decided I'll remove systemd ASAP since it's advantages are minimal. This is not the first time, Jessie is not booting. |
Thanks Igor, Do you have any clues as to why LOGIN service failed even if I used a static network configuration to get past that Ethernet issue? |
No clue at the moment, but am almost sure that systemd is the one which can't cope with this situation. Try to build image this way: http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation |
Let me try that & update you |
On a related note - I had a built ARMBIAN image based on 4.2-rc7. It was stable on Lamobo-r1. In the above image - the directory in /lib/module used to be called 4.2.0-rc7-lamobo-r1. Now it is seeming to be called 4.2-sunxi Is this difference in directory name giving u any clues? Thx again for all your awesome work |
That older build based on 4.2-rc7 was built few weeks back |
I merged kernel under same name - sunxi since they are the same. This problem emerged in recent kernel / u-boot version ... and sooner and later we'll fix it somehow ;) |
I'm puzzled because I'm able to run the 4.2.0 jessie image I got from your site http://www.armbian.com/lamobo-r1/ (that was released couple of weeks back, I guess it was Armbian 4.3 - don't remember) But when I try to built it from git sources locally (by setting the KERNELTAG to 4.2.0 in compile.sh) & use that image on my board - i run into this problem. So if possible - I wanted to use git checkout to move Armbian scripts to a point when you had built 4.2 image & then try building it locally. If possible - can you share the date when the previous 4.2.0 jessie image was built? |
R1 u-boot is very much different - in previous version I use one old (2015.04), now I am using recent. To than you will need to use older patch too: This one works only on recent u-boot. Bottom up. Not a trivial task. It's not just kernel which can make you troubles ;) |
Ah ok got it :) |
I tested two installations on two SD cards - Jessie 4.4 with mainline kernel and Stretch (testing) with 3.4.109, my device is cubietruck.
which is, I believe, is this bug: systemd/systemd/issues/1143 The thing is, day, month and time reads correctly in both cases, and only year is off by 70. Comparing Mainline and Legacy RTC drivers, looks like they are using different offset for setting year on the RTC, which leads to 70 years difference. |
I "hacked" sunxi rtc driver to get correct year on mainline (just for testing), but boot process still was stuck at "Raise network interfaces". |
Can u share the diff to sunxi rtc driver so that I can try this. Thanks a bunch for sharing your findings |
In file drivers/rtc/rtc-sunxi.c, line 123, I replaced
|
It helps, at least we start to deal with the problem ;) I agree with 2. ... I'll take a look too. I also change the script and add new option for systemd yes or no. If we don't find a proper solution in a short time ... :) |
Another way to boot jessie with systemd broken by wrong RTC time is even simpler and does not require recompiling kernel - you can just recompile .dtb file for target system with
|
By the way, Igor, you can have both systemd and sysvinit installed in Jessie, and switch between them by using different u-boot scripts, if you remove only |
Thanks for the tip. I'll prepare configuration for both ... I did some testing and comparison with 4.1.6 and the RTC part haven't change for a while. Huh. Also u-boot has no effect. |
From systemd bug discussion mentioned above I'm assuming that the reason for RTC issues is that mainline kernel might had switched from 32 bit time_t ( or another time related type) to 64 bit, so before instead of year 2085 we would just had an overflow and wrong date and time, but now we get all kinds of bugs in userspace. |
It must be some general change/bug; it's possible. I'll wait if your patch brings the joy. Regarding u-boot ... I only did few test boots with different versions to rule uboot out of this problem. |
There are (or actually were) 2 or 3 separate bugs, unrelated to each other.
I believe that your last commit, that disables i2c debug messages, actually fixed last two. I think that systemd-journald and/or rsyslog were so busy processing i2c debug spam, that they locked up another services that tried to use logging subsystem. I consider RTC bug for now being a low priority, because it happens only when switching kernels, and it can be fixed manually relatively easy (if you want, I can post instructions here). In my system |
Thanks for update. I also add evbug to blacklist. I rarely use console so I don't see. RTC bug fix - subtract 70 years from current date and write it, than proceed with upgrade? But post your solution, than I can close this issue. Perhaps I have to reconsider about changes regarding systemd? Disabling is a click away ;) |
If system is not booting after switching kernel from 3.4 to mainline due to systemd lockup, it can be fixed in-place without reflashing this way:
Enter these commands, replacing root device path if necessary.
System should eventually boot to bash shell:
Now you can check current date, correct it and upload it to RTC. Example:
hwclock will print error due to read-only file system, but it actually updates RTC. Done. Now you can restart with Theoretically, using bash shell with access to rootfs, users with armbian broken after update can remount rootfs to r/w, enable systemd debug shell and on next reboot use it to bring up network manually and upgrade kernel from armbian repo (when it will be available), but it is a whole another story. About systemd:
|
Did you test fresh built image or your old one with new kernel? I tested only 4.2.2 kernel with manual reconfiguration, and without this commit especially (which is temporary measure for migrating to 4.2.3). Can you extract kernel config file from your image (it is in /boot ) and check if it actually picked up i2c debug changes? |
I think it did not pick the i2c changes. I'm running a re-build after ensuring the latest config is present with the i2c fix. Hopefully this will fix it. Thanks so much for your help |
I had this same issue on fresh install for Cubieboard 2, with the Armbian 4.4 jessie 4.2.2 image which is currently on the download page. Building from the repo @414492474aa32db43364094d12d35933e7861afc solved it. Thus a new release is needed sooner than latter. (BTW, @igorpecovnik congrats for your work on these build scripts. It took long but I had never built so much stuff (incl. a kernel) with so little effort. Keep it going!) |
Regarding kernel upgrade issue / switch from old to mainline.
Tested a little bit on cubietruck with Jessie 4.5 mainline image. Worked for me. |
Nice idea, I'll explore it. |
Workaround works & bug will eventually be fixed within kernel so closing this. |
The worse part about systemd is you have no idea what it is doing and, therefore, no idea how to fix any issues. Even running systemctl "--test" gives errors "cannot run as root". What kind of app doesn't run as root? Seriously, what? Ridiculous. So, people crawl back to initd because it is more plain, well spoken, and understandable. Systemd fixes a problem that never existed, then complements the 'fix' by bringing more issues. Not good. |
I installed http://mirror.igorpecovnik.com/Armbian_4.4_Bananapi_Debian_jessie_4.2.2.zip and runned apt-get dist-upgrade and now boots my BPI not anymore and halts on "A start job is running for lsb: raise network interface"
The text was updated successfully, but these errors were encountered: