Active Topics

 


Reply
Thread Tools
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#41
Originally Posted by hawaii View Post
FWIW, something here is broken. My device boots, registers the LED and then simply halts and does nothing...
Is this with my code? I mean, it loads on my device and I did my best to match what I posted literally letter by letter to my current code in my /sbin/preinit....

Is anyone else having the same issue? If you're using my /sbin/preinit mod code, please speak up if it works for you with my last-posted version, so we can figure out if I wrote the code in the post wrong or if it's something else more integral to some N900s...

Also, did the previous version work for you? Are you using any other in-/sbin/preinit modifications?

Are you certain you typed everything literally correctly? It's possible you made a typo in one of the driver names... I don't know. I certainly know the pain of reflashing and restoring stuff (although I don't regularly back up the entire rootfs/opt... or ever, really - so I manually reinstall stuff, but the point is I get that it's inconvenient to fiddle to get something working, so my apologies for that, if I typed something wrong in my instructions....
 

The Following 2 Users Say Thank You to Mentalist Traceur For This Useful Post:
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#42
Ok, thanks to help from Google and Alterego on #maemo, I figured it out!
It seems that in order to make a working console, I needed to run it through getty.
So, my final line was:
"busybox getty 115200 tty0 sh", and I got a console login!
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520
 

The Following 4 Users Say Thank You to RobbieThe1st For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#43
Originally Posted by RobbieThe1st View Post
Ok, thanks to help from Google and Alterego on #maemo, I figured it out!
It seems that in order to make a working console, I needed to run it through getty.
So, my final line was:
"busybox getty 115200 tty0 sh", and I got a console login!
Hmm... Farther in /sbin/preinit than what I modify there's a command using "getty" to give a shell as well (I think it's for when the device is connected to with a serial console enabled or somesuch). I was going to try using it but I never had problems with just "sh" for whatever reason, so my code never needed me to.
 

The Following 2 Users Say Thank You to Mentalist Traceur For This Useful Post:
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#44
Originally Posted by Mentalist Traceur View Post
Hmm... Farther in /sbin/preinit than what I modify there's a command using "getty" to give a shell as well (I think it's for when the device is connected to with a serial console enabled or somesuch). I was going to try using it but I never had problems with just "sh" for whatever reason, so my code never needed me to.
I'm guessing that sets up the needed bits, which are then reused later...
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520
 

The Following User Says Thank You to RobbieThe1st For This Useful Post:
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#45
Originally Posted by Mentalist Traceur View Post
Is anyone else having the same issue? If you're using my /sbin/preinit mod code, please speak up if it works for you with my last-posted version, so we can figure out if I wrote the code in the post wrong or if it's something else more integral to some N900s...
I'm experiencing no problems whatsoever with your code. I've copy-pasted it over SSH to my device, so I'm sure I'm running the code posted by you as is.
 

The Following 2 Users Say Thank You to iDont For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#46
Note: Modification and redistribute shell script /sbin/preinit is not allowed due to license!

I reported relicense bug about this problem:
https://bugs.maemo.org/show_bug.cgi?id=12228
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#47
Originally Posted by pali View Post
Note: Modification and redistribute shell script /sbin/preinit is not allowed due to license!

I reported relicense bug about this problem:
https://bugs.maemo.org/show_bug.cgi?id=12228
Redistribution isn't allowed. I'm not so sure about modification. The license at the top says nothing about not being allowed to modify. It just prohibits all copying (including "adapting", but that's in the context of copying - so adapting that involves copying) - i.e. if I change the script for a different purpose I can't redistribute the modified /sbin/preinit - doesn't mean I can't legally say what lines I used, inserted at line X - and people aren't legally prevented from modifying it from there if they so choose.

I'll add my own comment to the bug whenever I remember what my username and password there were.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#48
Originally Posted by Mentalist Traceur View Post
Redistribution isn't allowed. I'm not so sure about modification. The license at the top says nothing about not being allowed to modify. It just prohibits all copying (including "adapting", but that's in the context of copying - so adapting that involves copying) - i.e. if I change the script for a different purpose I can't redistribute the modified /sbin/preinit - doesn't mean I can't legally say what lines I used, inserted at line X - and people aren't legally prevented from modifying it from there if they so choose.
This is stupid hack because shell script has stupid license. /sbin/preinit is critical part of booting which should have GPL/BSD (or compatible license). I think that community should have permitions to modify & redistribute this script...

Originally Posted by Mentalist Traceur View Post
I'll add my own comment to the bug whenever I remember what my username and password there were.
username = email
and you can resend/reset password
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#49
Originally Posted by RobbieThe1st View Post
I'm guessing that sets up the needed bits, which are then reused later...
Maybe, but it runs later than my code does, so it shouldn't be effecting my code... So yeah, I really don't know.

Originally Posted by pali View Post
This is stupid hack because shell script has stupid license. /sbin/preinit is critical part of booting which should have GPL/BSD (or compatible license). I think that community should have permitions to modify & redistribute this script...
I agree with the 'stupid hack' part (although I don't really define legal divisions as 'hacks', unless there's major technical skill involved in implementing, which isn't the case here). Technically, one of the Nokians on the bug page did say there's an informal acceptance of amongst-N900-users sharing of modified Nokia-copyrighted things. The problem is that that refers to R&D type stuff, which is great for us zealous power users trying to develop some cutting-edge feature, but isn't great for N900 end-users as a whole, who might benefit from and want a stereotypically 'power-user' feature like a root shell at boot, but who don't have the tech-savvy to R&D it and/or who don't use this forum enough to stumble upon it.

Originally Posted by pali
username = email
and you can resend/reset password
Cool, thank you. I have now voted and commented. Commented a lot, but that's just how I roll.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#50
I see no legal reason that a diff can't be created and packaged in order to patch in the changes when installed on the device.

None of the existing code is touched, the modified files stay on each user's device at their own discretion and the patch file contains nothing copywritten by Nokia.
 

The Following 2 Users Say Thank You to hawaii For This Useful Post:
Reply

Tags
console, console-mode, framebuffer, recovery, recovery-mode


 
Forum Jump


All times are GMT. The time now is 18:30.