* [gentoo-user] Shutdown, Gentoo and the Arietta.G25 @ 2014-12-01 17:46 meino.cramer 2014-12-01 18:08 ` [gentoo-user] " James ` (2 more replies) 0 siblings, 3 replies; 19+ messages in thread From: meino.cramer @ 2014-12-01 17:46 UTC (permalink / raw To: Gentoo Hi, another >sigh< from an Arietta adventure... I sintalled Gentoo on an Arietta G25 (http://www.acmesystems.it/arietta). For this I used Robert Nelsons Kernel for armv5tel platforms, which boots fine (using at91bootstrap, no U-Boot). But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") REBOOTS the system instead of powering it down. The hardware is not to blame: Using the original Debian rootfs and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the powerdown works fine. Firstly I blamed the kernel...but when using the 3.16.1 kernel and the Gentoo rootfs the problem remains. Then I copied the Gentoo shutdown to the Debian rootfs, boot that and tries to shutdown the Debian Linux with it. shutdown cries "no /dev/initctl" adn shutdowns the system only for rebooting it. Ok...seems to be the shutdown executable. I copied the Debian shutdown to Gentoo and tries that: The systems reboots. Slowly but surely I begin to think, that I dont understand anything at all of It would be relly good news, that... "man shutdown" on the Debian image informs me, that the manpages were not installed (embedded system...). Shutdown --version gives a short help of the usual options...but nothing more. What is the difference here? Isn't it, that all shutdown applications only send some instructions to the kernel and the kernel is the main actor in bringing the system down? Is there any shutdown guru ;) out there, who is able to shed some light into this problem ? :) Thank you very much in advance for any torch send into my direction! Best regards, Meino ^ permalink raw reply [flat|nested] 19+ messages in thread
* [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-01 17:46 [gentoo-user] Shutdown, Gentoo and the Arietta.G25 meino.cramer @ 2014-12-01 18:08 ` James 2014-12-01 18:29 ` meino.cramer 2014-12-02 18:41 ` meino.cramer 2014-12-01 18:13 ` [gentoo-user] " Rich Freeman 2014-12-01 18:13 ` Dale 2 siblings, 2 replies; 19+ messages in thread From: James @ 2014-12-01 18:08 UTC (permalink / raw To: gentoo-user <meino.cramer <at> gmx.de> writes: > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > REBOOTS the system instead of powering it down. What about "halt"? man halt > What is the difference here? > Isn't it, that all shutdown applications only send some instructions > to the kernel and the kernel is the main actor in bringing the system > down? > Meino Meino, "it's an embedded system". That can mean unique hardware, via the SoC, hidden codes via the in-situ firmware, or a myriad of things hidden in the "recommended" kernel(s). Many embedded developers forked off their own "embedded kernel" form linux via the 2.2 or 2.4 kernel series. So, you have to "fully characterize" the system. Which is difficult to impossible, as the vendor wants to retain control in most circumstances. The good news is most "hardware vendors" are dumb, when it comes to codes; so there is most always a work-around; hence "man halt" as for your next leg of the journey? hth, James ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:08 ` [gentoo-user] " James @ 2014-12-01 18:29 ` meino.cramer 2014-12-01 20:54 ` James 2014-12-02 18:41 ` meino.cramer 1 sibling, 1 reply; 19+ messages in thread From: meino.cramer @ 2014-12-01 18:29 UTC (permalink / raw To: gentoo-user James <wireless@tampabay.rr.com> [14-12-01 19:12]: > <meino.cramer <at> gmx.de> writes: > > > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > > REBOOTS the system instead of powering it down. > > What about "halt"? man halt > > > What is the difference here? > > Isn't it, that all shutdown applications only send some instructions > > to the kernel and the kernel is the main actor in bringing the system > > down? > > > Meino > > > Meino, "it's an embedded system". That can mean unique hardware, via > the SoC, hidden codes via the in-situ firmware, or a myriad of things > hidden in the "recommended" kernel(s). Many embedded developers > forked off their own "embedded kernel" form linux via the 2.2 or 2.4 > kernel series. > > So, you have to "fully characterize" the system. Which is difficult to > impossible, as the vendor wants to retain control in most circumstances. > The good news is most "hardware vendors" are dumb, when it comes to codes; > so there is most always a work-around; hence "man halt" as for your > next leg of the journey? > > hth, > James > Hi James, :) The complete software is open source. The patches from acmesystems to (or is "against" the better english word for that process???) the kernel are only adding dts/dtb files (device tree...kinda "config file to tell the kernel at what adress what hardware is, what size the memory/flash is etcetera"...human readable) and prepare an already done kernel configuration. There is no "hiding" by acmesystems. No propietary firmware blob (ok...there is one...but it is for the additional Ralink Wifi chip and is offered inside a Linux.firmware.tar.gz indepandantly from acmesystems.) The hardware itself consists of an AT91SAM9G25 CPU by Atmel and 256 MB of RAM (and some analog power thingies and regulators) and a Mico-USB socket. And lots of GPIO connectors. The hardware is such a "Middle of the road" that Robert Nelsons said, that even a complete mainline kernel just directly taken from Linus desktop would work. The problem with shutdown was mentioned in their "Trouble shooting FAQ" and it was said, that instead of "halt" one should use "shutdown -h -H now"...which works with a Debian system...but not with Gentoo. They describe how to compile the kernel thet use...: Fetch the 3.16.1 kernel from ftp.kernel.org Apply the patch Compile the kernel and the modules Install it on the SDcard. Add a rootfs Done. No hiding or propietary stuff. Just open source. The problem I think is burried under the differences of both rootfs: Debian and Gentoo Best regards, Meino ^ permalink raw reply [flat|nested] 19+ messages in thread
* [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:29 ` meino.cramer @ 2014-12-01 20:54 ` James 2014-12-02 10:14 ` Joerg Schilling 0 siblings, 1 reply; 19+ messages in thread From: James @ 2014-12-01 20:54 UTC (permalink / raw To: gentoo-user <meino.cramer <at> gmx.de> writes: > > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > > > REBOOTS the system instead of powering it down. > > What about "halt"? man halt > The problem I think is burried Okay, ferret it out. Does this accomplish what you want: "sync;sync;sync;halt" ? "man sync" You may need to pass arguements to halt. A standard man page may not be exactly correct in what you have, so you may have to peruse the codes. Think for a second. It's embedded, so why can the board (OS) be shutdown or halted as you like? James ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-01 20:54 ` James @ 2014-12-02 10:14 ` Joerg Schilling 2014-12-02 18:11 ` James 0 siblings, 1 reply; 19+ messages in thread From: Joerg Schilling @ 2014-12-02 10:14 UTC (permalink / raw To: gentoo-user James <wireless@tampabay.rr.com> wrote: > <meino.cramer <at> gmx.de> writes: > > > > > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > > > > REBOOTS the system instead of powering it down. > > > > What about "halt"? man halt > > > The problem I think is burried > > Okay, ferret it out. > > Does this accomplish what you want: > > > "sync;sync;sync;halt" ? Do you believe that a method described for early AT&T UNIX (early to mid 1970s) where "halt" did not yet exist is a valid idea for Linux? Jörg -- EMail:joerg@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/' ^ permalink raw reply [flat|nested] 19+ messages in thread
* [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-02 10:14 ` Joerg Schilling @ 2014-12-02 18:11 ` James 2014-12-02 18:34 ` Rich Freeman 0 siblings, 1 reply; 19+ messages in thread From: James @ 2014-12-02 18:11 UTC (permalink / raw To: gentoo-user Joerg Schilling <Joerg.Schilling <at> fokus.fraunhofer.de> writes: > > Does this accomplish what you want: > > "sync;sync;sync;halt" ? > > Do you believe that a method described for early AT&T UNIX (early to mid > > 1970s) where "halt" did not yet exist is a valid idea for Linux? valid has no value here. Meino is trying to get his embedded (hack job) to shutdown. He first needs to get this accomplished before finding/developing a robust solution for his unique embedded needs. This is how most embedded workflows propagte, often with a singular dev. Meino is very lucky, he has the gentoo community to toss him ideas on a regular basis. So no, not part of regular system administraion. YES for a transient solution to an embedded hack. hth, James ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-02 18:11 ` James @ 2014-12-02 18:34 ` Rich Freeman 0 siblings, 0 replies; 19+ messages in thread From: Rich Freeman @ 2014-12-02 18:34 UTC (permalink / raw To: gentoo-user On Tue, Dec 2, 2014 at 1:11 PM, James <wireless@tampabay.rr.com> wrote: > > So no, not part of regular system administraion. YES for a transient > solution to an embedded hack. > No argument that when you're troubleshooting powering off just getting the thing to power off by any means necessary is a useful exercise. However, I still think he should just do what the man page says (and not what some Debian-oriented webpage says) and call shutdown with the correct arguments to power the thing off before spending a lot of time troubleshooting. -- Rich ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:08 ` [gentoo-user] " James 2014-12-01 18:29 ` meino.cramer @ 2014-12-02 18:41 ` meino.cramer 2014-12-03 1:25 ` James 1 sibling, 1 reply; 19+ messages in thread From: meino.cramer @ 2014-12-02 18:41 UTC (permalink / raw To: gentoo-user Hi all, thank you very much for all the help you offered! :) It works now! Robert Nelson, who maintains the kernel for the Beagleboard Black gave me the hint to try the kernel version 3.18.rc7 (mainline), which receives a lot of upgrades concerning AT91 systems, which the Arietta G25 is one of. Additonally from the Acmesystems mailing list I got the hint to explicetly set the clock frequencies of the XTALs in the dts file. After mixing everything together, recompiling the kernel and installing it on the board I now have a Gentoo system with the correct time (which was way off after a short period with previous kernel versions) and 'shutdown -h -H now' now correctly powers down the board. I am happy! :) Best regards, Meino ^ permalink raw reply [flat|nested] 19+ messages in thread
* [gentoo-user] Re: Shutdown, Gentoo and the Arietta.G25 2014-12-02 18:41 ` meino.cramer @ 2014-12-03 1:25 ` James 0 siblings, 0 replies; 19+ messages in thread From: James @ 2014-12-03 1:25 UTC (permalink / raw To: gentoo-user <meino.cramer <at> gmx.de> writes: -> It works now! --> I am happy! ---> Meino Fantastic! So now you are famous ! Now organize what you have learned and done and submit it to the gentoo embedded project, so they can include those critical details into the gentoo-embedded handbook under the "boards" section: https://www.gentoo.org/proj/en/base/embedded/handbook/ There is a section on "Contributing" send some email to gentoo-embedded@lists.gentoo.org also. http://www.gentoo.org/proj/en/base/embedded/ And the next time somebody needs an inexpensive embedded board, we can point them to your work. James ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 17:46 [gentoo-user] Shutdown, Gentoo and the Arietta.G25 meino.cramer 2014-12-01 18:08 ` [gentoo-user] " James @ 2014-12-01 18:13 ` Rich Freeman 2014-12-01 18:40 ` meino.cramer 2014-12-01 18:13 ` Dale 2 siblings, 1 reply; 19+ messages in thread From: Rich Freeman @ 2014-12-01 18:13 UTC (permalink / raw To: gentoo-user On Mon, Dec 1, 2014 at 12:46 PM, <meino.cramer@gmx.de> wrote: > What is the difference here? > Isn't it, that all shutdown applications only send some instructions > to the kernel and the kernel is the main actor in bringing the system > down? > About the only thing the kernel might have a role in is turning off the power. Almost all of the shutdown logic is in userspace and it isn't surprising that copying scripts between distros is going to cause issues since the whole service management component varies GREATLY across distros. Maybe if you're using systemd you could copy between distros since that is more standardized, but even then there can be differences. In a traditional sysvinit system usually shutting down is accomplished by changing runlevels, which immediately starts/stops anything in inittab (generally only gettys) and calls a script which does all the actual work. If the issue is that userspace shuts down fine but the system reboots instead of powering off that could be a couple of things which shouldn't be too hard to track down. An obvious question is whether the hardware even supports being powered off in the first place - this isn't an ATX motherboard. Powering off a system can sometimes be remarkably tricky depending on how standardized the platform is. I was reading an article on it a few years ago and I think linux actually implements several different mechanisms that get tried in series, with the final fallback being a halt without powering off. -- Rich ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:13 ` [gentoo-user] " Rich Freeman @ 2014-12-01 18:40 ` meino.cramer 2014-12-01 19:33 ` Jc García 0 siblings, 1 reply; 19+ messages in thread From: meino.cramer @ 2014-12-01 18:40 UTC (permalink / raw To: gentoo-user Rich Freeman <rich0@gentoo.org> [14-12-01 19:16]: > On Mon, Dec 1, 2014 at 12:46 PM, <meino.cramer@gmx.de> wrote: > > What is the difference here? > > Isn't it, that all shutdown applications only send some instructions > > to the kernel and the kernel is the main actor in bringing the system > > down? > > > > About the only thing the kernel might have a role in is turning off > the power. Almost all of the shutdown logic is in userspace and it > isn't surprising that copying scripts between distros is going to > cause issues since the whole service management component varies > GREATLY across distros. Maybe if you're using systemd you could copy > between distros since that is more standardized, but even then there > can be differences. > > In a traditional sysvinit system usually shutting down is accomplished > by changing runlevels, which immediately starts/stops anything in > inittab (generally only gettys) and calls a script which does all the > actual work. > > If the issue is that userspace shuts down fine but the system reboots > instead of powering off that could be a couple of things which > shouldn't be too hard to track down. An obvious question is whether > the hardware even supports being powered off in the first place - this > isn't an ATX motherboard. Powering off a system can sometimes be > remarkably tricky depending on how standardized the platform is. I > was reading an article on it a few years ago and I think linux > actually implements several different mechanisms that get tried in > series, with the final fallback being a halt without powering off. > > -- > Rich > Hi Rich, AH! :) Thanks for the informations! From what you say, it is a kernel problem, since the kernel is the one who switches off the lights... But even if I use the same kernel as used for the Debian system it does not work... May be shutdown says "power off the system" and the kernel understands "reboot the system"? I mean: In principle the kernel would be able to poweroff the system but there are some communications difficulties with the guys from userland? ;) Best regards, Meino ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:40 ` meino.cramer @ 2014-12-01 19:33 ` Jc García 2014-12-01 19:51 ` meino.cramer 0 siblings, 1 reply; 19+ messages in thread From: Jc García @ 2014-12-01 19:33 UTC (permalink / raw To: gentoo-user 2014-12-01 12:40 GMT-06:00 <meino.cramer@gmx.de>: > Rich Freeman <rich0@gentoo.org> [14-12-01 19:16]: >> On Mon, Dec 1, 2014 at 12:46 PM, <meino.cramer@gmx.de> wrote: >> > What is the difference here? >> > Isn't it, that all shutdown applications only send some instructions >> > to the kernel and the kernel is the main actor in bringing the system >> > down? >> > >> >> About the only thing the kernel might have a role in is turning off >> the power. Almost all of the shutdown logic is in userspace and it >> isn't surprising that copying scripts between distros is going to >> cause issues since the whole service management component varies >> GREATLY across distros. Maybe if you're using systemd you could copy >> between distros since that is more standardized, but even then there >> can be differences. >> >> In a traditional sysvinit system usually shutting down is accomplished >> by changing runlevels, which immediately starts/stops anything in >> inittab (generally only gettys) and calls a script which does all the >> actual work. >> >> If the issue is that userspace shuts down fine but the system reboots >> instead of powering off that could be a couple of things which >> shouldn't be too hard to track down. An obvious question is whether >> the hardware even supports being powered off in the first place - this >> isn't an ATX motherboard. Powering off a system can sometimes be >> remarkably tricky depending on how standardized the platform is. I >> was reading an article on it a few years ago and I think linux >> actually implements several different mechanisms that get tried in >> series, with the final fallback being a halt without powering off. >> >> -- >> Rich >> > > Hi Rich, > > AH! :) Thanks for the informations! > > From what you say, it is a kernel problem, since the kernel > is the one who switches off the lights... > > But even if I use the same kernel as used for the Debian system > it does not work... > > May be shutdown says "power off the system" and the kernel understands > "reboot the system"? > I mean: In principle the kernel would be able to poweroff the system > but there are some communications difficulties with the guys from > userland? ;) > > Best regards, > Meino > > > I've always turned off across linux distros (BSD is other story) with: # shutdown -hP now the help says : -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. I've not seen you using the -P flag. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 19:33 ` Jc García @ 2014-12-01 19:51 ` meino.cramer 2014-12-01 21:28 ` Rich Freeman 0 siblings, 1 reply; 19+ messages in thread From: meino.cramer @ 2014-12-01 19:51 UTC (permalink / raw To: gentoo-user Jc García <jyo.garcia@gmail.com> [14-12-01 20:36]: > 2014-12-01 12:40 GMT-06:00 <meino.cramer@gmx.de>: > > Rich Freeman <rich0@gentoo.org> [14-12-01 19:16]: > >> On Mon, Dec 1, 2014 at 12:46 PM, <meino.cramer@gmx.de> wrote: > >> > What is the difference here? > >> > Isn't it, that all shutdown applications only send some instructions > >> > to the kernel and the kernel is the main actor in bringing the system > >> > down? > >> > > >> > >> About the only thing the kernel might have a role in is turning off > >> the power. Almost all of the shutdown logic is in userspace and it > >> isn't surprising that copying scripts between distros is going to > >> cause issues since the whole service management component varies > >> GREATLY across distros. Maybe if you're using systemd you could copy > >> between distros since that is more standardized, but even then there > >> can be differences. > >> > >> In a traditional sysvinit system usually shutting down is accomplished > >> by changing runlevels, which immediately starts/stops anything in > >> inittab (generally only gettys) and calls a script which does all the > >> actual work. > >> > >> If the issue is that userspace shuts down fine but the system reboots > >> instead of powering off that could be a couple of things which > >> shouldn't be too hard to track down. An obvious question is whether > >> the hardware even supports being powered off in the first place - this > >> isn't an ATX motherboard. Powering off a system can sometimes be > >> remarkably tricky depending on how standardized the platform is. I > >> was reading an article on it a few years ago and I think linux > >> actually implements several different mechanisms that get tried in > >> series, with the final fallback being a halt without powering off. > >> > >> -- > >> Rich > >> > > > > Hi Rich, > > > > AH! :) Thanks for the informations! > > > > From what you say, it is a kernel problem, since the kernel > > is the one who switches off the lights... > > > > But even if I use the same kernel as used for the Debian system > > it does not work... > > > > May be shutdown says "power off the system" and the kernel understands > > "reboot the system"? > > I mean: In principle the kernel would be able to poweroff the system > > but there are some communications difficulties with the guys from > > userland? ;) > > > > Best regards, > > Meino > > > > > > > I've always turned off across linux distros (BSD is other story) with: > > # shutdown -hP now > > the help says : > -h: halt after shutdown. > -P: halt action is to turn off power. > -H: halt action is to just halt. > > I've not seen you using the -P flag. > That's why the manufacturer of the Arietta G25 - Acmesystems said to use shutdown -h -H now for that purpose: http://www.acmesystems.it/qa Second question below the title "Arietta G25 just on top of the page... ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 19:51 ` meino.cramer @ 2014-12-01 21:28 ` Rich Freeman 0 siblings, 0 replies; 19+ messages in thread From: Rich Freeman @ 2014-12-01 21:28 UTC (permalink / raw To: gentoo-user On Mon, Dec 1, 2014 at 2:51 PM, <meino.cramer@gmx.de> wrote: > Jc García <jyo.garcia@gmail.com> [14-12-01 20:36]: >> >> I've not seen you using the -P flag. >> > > That's why the manufacturer of the Arietta G25 - Acmesystems said > to use shutdown -h -H now for that purpose: > http://www.acmesystems.it/qa > Second question below the title "Arietta G25 just on top of the > page... > > Have you just tried using -P to make sure that it doesn't work? The instructions also say to use Debian, not Gentoo. Since most of the shutdown behavior is in userspace and using components that vary significantly between distros, I wouldn't blindly follow the instructions written for one distro and expect it to just work with a different distro. Maybe Debian has some bug that makes -P not work, but -H does work. Maybe OpenRC doesn't have that bug. -- Rich ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 17:46 [gentoo-user] Shutdown, Gentoo and the Arietta.G25 meino.cramer 2014-12-01 18:08 ` [gentoo-user] " James 2014-12-01 18:13 ` [gentoo-user] " Rich Freeman @ 2014-12-01 18:13 ` Dale 2014-12-01 18:34 ` meino.cramer 2 siblings, 1 reply; 19+ messages in thread From: Dale @ 2014-12-01 18:13 UTC (permalink / raw To: gentoo-user meino.cramer@gmx.de wrote: > Hi, > > another >sigh< from an Arietta adventure... > > I sintalled Gentoo on an Arietta G25 > (http://www.acmesystems.it/arietta). > > For this I used Robert Nelsons Kernel for armv5tel platforms, > which boots fine (using at91bootstrap, no U-Boot). > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > REBOOTS the system instead of powering it down. > > The hardware is not to blame: Using the original Debian rootfs > and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the > powerdown works fine. > > Firstly I blamed the kernel...but when using the 3.16.1 kernel > and the Gentoo rootfs the problem remains. > > Then I copied the Gentoo shutdown to the Debian rootfs, boot that > and tries to shutdown the Debian Linux with it. > shutdown cries "no /dev/initctl" adn shutdowns the system only for > rebooting it. > > Ok...seems to be the shutdown executable. > > I copied the Debian shutdown to Gentoo and tries that: > The systems reboots. > > Slowly but surely I begin to think, that I dont understand anything at all of > It would be relly good news, > that... > > "man shutdown" on the Debian image informs me, that the manpages > were not installed (embedded system...). Shutdown --version gives > a short help of the usual options...but nothing more. > > What is the difference here? > Isn't it, that all shutdown applications only send some instructions > to the kernel and the kernel is the main actor in bringing the system > down? > > Is there any shutdown guru ;) out there, who is able to shed some > light into this problem ? :) > > Thank you very much in advance for any torch send into my direction! > Best regards, > Meino > Just shooting in the dark here, try -h and -H but not at the same time? Maybe having both is clashing in some weird way??? Dale :-) :-) ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:13 ` Dale @ 2014-12-01 18:34 ` meino.cramer 2014-12-01 21:03 ` Fernando Rodriguez 2014-12-01 21:21 ` Fernando Rodriguez 0 siblings, 2 replies; 19+ messages in thread From: meino.cramer @ 2014-12-01 18:34 UTC (permalink / raw To: gentoo-user Dale <rdalek1967@gmail.com> [14-12-01 19:16]: > meino.cramer@gmx.de wrote: > > Hi, > > > > another >sigh< from an Arietta adventure... > > > > I sintalled Gentoo on an Arietta G25 > > (http://www.acmesystems.it/arietta). > > > > For this I used Robert Nelsons Kernel for armv5tel platforms, > > which boots fine (using at91bootstrap, no U-Boot). > > > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > > REBOOTS the system instead of powering it down. > > > > The hardware is not to blame: Using the original Debian rootfs > > and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the > > powerdown works fine. > > > > Firstly I blamed the kernel...but when using the 3.16.1 kernel > > and the Gentoo rootfs the problem remains. > > > > Then I copied the Gentoo shutdown to the Debian rootfs, boot that > > and tries to shutdown the Debian Linux with it. > > shutdown cries "no /dev/initctl" adn shutdowns the system only for > > rebooting it. > > > > Ok...seems to be the shutdown executable. > > > > I copied the Debian shutdown to Gentoo and tries that: > > The systems reboots. > > > > Slowly but surely I begin to think, that I dont understand anything at all of > > It would be relly good news, > > that... > > > > "man shutdown" on the Debian image informs me, that the manpages > > were not installed (embedded system...). Shutdown --version gives > > a short help of the usual options...but nothing more. > > > > What is the difference here? > > Isn't it, that all shutdown applications only send some instructions > > to the kernel and the kernel is the main actor in bringing the system > > down? > > > > Is there any shutdown guru ;) out there, who is able to shed some > > light into this problem ? :) > > > > Thank you very much in advance for any torch send into my direction! > > Best regards, > > Meino > > > > Just shooting in the dark here, try -h and -H but not at the same time? > Maybe having both is clashing in some weird way??? > > Dale > > :-) :-) > Hi Dale, The "Trouble shooting FAQ"*) by acmesystems explicitely say "shutdown -h -H now" (and it works with the Debian rootfs)...but I will try "the other shutdowns" and will see, what happens, Best regards, Meino *) http://www.acmesystems.it/qa ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:34 ` meino.cramer @ 2014-12-01 21:03 ` Fernando Rodriguez 2014-12-01 22:08 ` Matti Nykyri 2014-12-01 21:21 ` Fernando Rodriguez 1 sibling, 1 reply; 19+ messages in thread From: Fernando Rodriguez @ 2014-12-01 21:03 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 3214 bytes --] On Monday, December 01, 2014 7:34:35 PM meino.cramer@gmx.de wrote: > Dale <rdalek1967@gmail.com> [14-12-01 19:16]: > > meino.cramer@gmx.de wrote: > > > Hi, > > > > > > another >sigh< from an Arietta adventure... > > > > > > I sintalled Gentoo on an Arietta G25 > > > (http://www.acmesystems.it/arietta). > > > > > > For this I used Robert Nelsons Kernel for armv5tel platforms, > > > which boots fine (using at91bootstrap, no U-Boot). > > > > > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > > > REBOOTS the system instead of powering it down. > > > > > > The hardware is not to blame: Using the original Debian rootfs > > > and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the > > > powerdown works fine. > > > > > > Firstly I blamed the kernel...but when using the 3.16.1 kernel > > > and the Gentoo rootfs the problem remains. > > > > > > Then I copied the Gentoo shutdown to the Debian rootfs, boot that > > > and tries to shutdown the Debian Linux with it. > > > shutdown cries "no /dev/initctl" adn shutdowns the system only for > > > rebooting it. > > > > > > Ok...seems to be the shutdown executable. > > > > > > I copied the Debian shutdown to Gentoo and tries that: > > > The systems reboots. > > > > > > Slowly but surely I begin to think, that I dont understand anything at all of > > > It would be relly good news, > > > that... > > > > > > "man shutdown" on the Debian image informs me, that the manpages > > > were not installed (embedded system...). Shutdown --version gives > > > a short help of the usual options...but nothing more. > > > > > > What is the difference here? > > > Isn't it, that all shutdown applications only send some instructions > > > to the kernel and the kernel is the main actor in bringing the system > > > down? > > > > > > Is there any shutdown guru ;) out there, who is able to shed some > > > light into this problem ? :) > > > > > > Thank you very much in advance for any torch send into my direction! > > > Best regards, > > > Meino > > > > > > > Just shooting in the dark here, try -h and -H but not at the same time? > > Maybe having both is clashing in some weird way??? > > > > Dale > > > > :-) :-) > > > > Hi Dale, > > The "Trouble shooting FAQ"*) by acmesystems explicitely say "shutdown -h > -H now" (and it works with the Debian rootfs)...but I will try "the > other shutdowns" and will see, what happens, > > Best regards, > Meino > > > > *) http://www.acmesystems.it/qa > Looking at the code for sysvinit, all shutdown does is set some environment variables and switch runlevel. The actual shutdown is done by halt and it's done through the reboot system call with RB_POWER_OFF. So, since you said the Gentoo system doesn't work even with Debian's kernel and the shutdown, then it must be that either Debian has a different halt, or more likely your Gentoo system calls halt with different options. So check your inittab on Gentoo and make sure it calls halt in the same way. -- Fernando Rodriguez frodriguez.developer@outlook.com PGP Key: http://keys.gnupg.net/pks/lookup?op=get&search=0xF6CE157FF9525C1C [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 21:03 ` Fernando Rodriguez @ 2014-12-01 22:08 ` Matti Nykyri 0 siblings, 0 replies; 19+ messages in thread From: Matti Nykyri @ 2014-12-01 22:08 UTC (permalink / raw To: gentoo-user@lists.gentoo.org > On Dec 1, 2014, at 23:03, Fernando Rodriguez <frodriguez.developer@outlook.com> wrote: > >> On Monday, December 01, 2014 7:34:35 PM meino.cramer@gmx.de wrote: >> Dale <rdalek1967@gmail.com> [14-12-01 19:16]: >>> meino.cramer@gmx.de wrote: >>>> Hi, >>>> >>>> another >sigh< from an Arietta adventure... >>>> >>>> I sintalled Gentoo on an Arietta G25 >>>> (http://www.acmesystems.it/arietta). >>>> >>>> For this I used Robert Nelsons Kernel for armv5tel platforms, >>>> which boots fine (using at91bootstrap, no U-Boot). >>>> >>>> But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") >>>> REBOOTS the system instead of powering it down. >>>> >>>> The hardware is not to blame: Using the original Debian rootfs >>>> and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the >>>> powerdown works fine. >>>> >>>> Firstly I blamed the kernel...but when using the 3.16.1 kernel >>>> and the Gentoo rootfs the problem remains. >>>> >>>> Then I copied the Gentoo shutdown to the Debian rootfs, boot that >>>> and tries to shutdown the Debian Linux with it. >>>> shutdown cries "no /dev/initctl" adn shutdowns the system only for >>>> rebooting it. >>>> >>>> Ok...seems to be the shutdown executable. >>>> >>>> I copied the Debian shutdown to Gentoo and tries that: >>>> The systems reboots. >>>> >>>> Slowly but surely I begin to think, that I dont understand anything at > all of >>>> It would be relly good news, >>>> that... >>>> >>>> "man shutdown" on the Debian image informs me, that the manpages >>>> were not installed (embedded system...). Shutdown --version gives >>>> a short help of the usual options...but nothing more. >>>> >>>> What is the difference here? >>>> Isn't it, that all shutdown applications only send some instructions >>>> to the kernel and the kernel is the main actor in bringing the system >>>> down? >>>> >>>> Is there any shutdown guru ;) out there, who is able to shed some >>>> light into this problem ? :) >>>> >>>> Thank you very much in advance for any torch send into my direction! >>>> Best regards, >>>> Meino >>> >>> Just shooting in the dark here, try -h and -H but not at the same time? >>> Maybe having both is clashing in some weird way??? >>> >>> Dale >>> >>> :-) :-) >> >> Hi Dale, >> >> The "Trouble shooting FAQ"*) by acmesystems explicitely say "shutdown -h >> -H now" (and it works with the Debian rootfs)...but I will try "the >> other shutdowns" and will see, what happens, >> >> Best regards, >> Meino >> >> >> >> *) http://www.acmesystems.it/qa > > Looking at the code for sysvinit, all shutdown does is set some environment > variables and switch runlevel. The actual shutdown is done by halt and it's > done through the reboot system call with RB_POWER_OFF. > > So, since you said the Gentoo system doesn't work even with Debian's kernel > and the shutdown, then it must be that either Debian has a different halt, or > more likely your Gentoo system calls halt with different options. So check your > inittab on Gentoo and make sure it calls halt in the same way. Hi meino The thing is as Fernando pointed out: Kernel powers off the hardware and a system call is used to instruct kernel to do so. Test your system. Perform a system call to shutdown the board. As you perform this system call the arietta will instantly eighter boot or shutdown. See system call man page to see the list of available system calls. This way you can make sure the system works as expected... When you have found the right system call, then you need to make init call that system call as the last command in run level 0. -- -Matti ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 2014-12-01 18:34 ` meino.cramer 2014-12-01 21:03 ` Fernando Rodriguez @ 2014-12-01 21:21 ` Fernando Rodriguez 1 sibling, 0 replies; 19+ messages in thread From: Fernando Rodriguez @ 2014-12-01 21:21 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2873 bytes --] On Monday, December 01, 2014 7:34:35 PM meino.cramer@gmx.de wrote: > Dale <rdalek1967@gmail.com> [14-12-01 19:16]: > > meino.cramer@gmx.de wrote: > > > Hi, > > > > > > another >sigh< from an Arietta adventure... > > > > > > I sintalled Gentoo on an Arietta G25 > > > (http://www.acmesystems.it/arietta). > > > > > > For this I used Robert Nelsons Kernel for armv5tel platforms, > > > which boots fine (using at91bootstrap, no U-Boot). > > > > > > But: Shutdown (as recommmended by acmesystems "shutdown -h -H now") > > > REBOOTS the system instead of powering it down. > > > > > > The hardware is not to blame: Using the original Debian rootfs > > > and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the > > > powerdown works fine. > > > > > > Firstly I blamed the kernel...but when using the 3.16.1 kernel > > > and the Gentoo rootfs the problem remains. > > > > > > Then I copied the Gentoo shutdown to the Debian rootfs, boot that > > > and tries to shutdown the Debian Linux with it. > > > shutdown cries "no /dev/initctl" adn shutdowns the system only for > > > rebooting it. > > > > > > Ok...seems to be the shutdown executable. > > > > > > I copied the Debian shutdown to Gentoo and tries that: > > > The systems reboots. > > > > > > Slowly but surely I begin to think, that I dont understand anything at all of > > > It would be relly good news, > > > that... > > > > > > "man shutdown" on the Debian image informs me, that the manpages > > > were not installed (embedded system...). Shutdown --version gives > > > a short help of the usual options...but nothing more. > > > > > > What is the difference here? > > > Isn't it, that all shutdown applications only send some instructions > > > to the kernel and the kernel is the main actor in bringing the system > > > down? > > > > > > Is there any shutdown guru ;) out there, who is able to shed some > > > light into this problem ? :) > > > > > > Thank you very much in advance for any torch send into my direction! > > > Best regards, > > > Meino > > > > > > > Just shooting in the dark here, try -h and -H but not at the same time? > > Maybe having both is clashing in some weird way??? > > > > Dale > > > > :-) :-) > > > > Hi Dale, > > The "Trouble shooting FAQ"*) by acmesystems explicitely say "shutdown -h > -H now" (and it works with the Debian rootfs)...but I will try "the > other shutdowns" and will see, what happens, > > Best regards, > Meino > > > > *) http://www.acmesystems.it/qa > Also AFAICT the -H option just set an env variable INIT_HALT and it looks like OpenRC ignores it so look at your init scripts on Debian and see what it does when it is set. -- Fernando Rodriguez frodriguez.developer@outlook.com PGP Key: http://keys.gnupg.net/pks/lookup?op=get&search=0xF6CE157FF9525C1C [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2014-12-03 1:26 UTC | newest] Thread overview: 19+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-12-01 17:46 [gentoo-user] Shutdown, Gentoo and the Arietta.G25 meino.cramer 2014-12-01 18:08 ` [gentoo-user] " James 2014-12-01 18:29 ` meino.cramer 2014-12-01 20:54 ` James 2014-12-02 10:14 ` Joerg Schilling 2014-12-02 18:11 ` James 2014-12-02 18:34 ` Rich Freeman 2014-12-02 18:41 ` meino.cramer 2014-12-03 1:25 ` James 2014-12-01 18:13 ` [gentoo-user] " Rich Freeman 2014-12-01 18:40 ` meino.cramer 2014-12-01 19:33 ` Jc García 2014-12-01 19:51 ` meino.cramer 2014-12-01 21:28 ` Rich Freeman 2014-12-01 18:13 ` Dale 2014-12-01 18:34 ` meino.cramer 2014-12-01 21:03 ` Fernando Rodriguez 2014-12-01 22:08 ` Matti Nykyri 2014-12-01 21:21 ` Fernando Rodriguez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox