|
Page 3 of 6 |
|
Prev |
1 2 3
4 5
|
Next
| Last
Re: u-boot for the RX-51 (N900)
Cool, finally, progress towards booting Maemo from eMMC without using mtd5.
By the way, I think that with this, we can finally mess with getting rid of /sbin/preinit (which imo is a huge WTF) without risking a reflash! (initrd runs backupmenu if it sees slide open? recovery OS from u-boot?) |
Re: u-boot for the RX-51 (N900)
Quote:
|
Re: u-boot for the RX-51 (N900)
So the cpio archive could be a way to go.
Then it comes to what exactly is needed to setup a prerootfs to boot from. The multiboot script creates loads of device nodes and insmods many modules. I guess this can be simplified. I think we only need /dev/console and the mmcblk devices and only need to load the ext2 module to access the real root filesystem. All other stuff should be done by the init command on the real root filesystem. Or am I missing something. |
Re: u-boot for the RX-51 (N900)
@Pali
Could you compile your bootmenu patch against stskeeps' version of u-boot? I tried compiling al's latest u-boot(clean) and caused the same reboot loop so I decided to try compiling stskeeps version of u-boot and merged with kp49 and it worked flawlessly on my device. So my request is could you provide a compiled version of u-boot.bin that is patched with stskeeps u-boot for some of us who are having problems with the current u-boot? I'm not really good at these patch & diff thingy that's why I am asking if you could do it? Thanks and I hope you would be reconsidering my request :o |
Re: u-boot for the RX-51 (N900)
bootmenu patches rebased on top of matan (origin ali/stskeeps) version are in branch pali: https://gitorious.org/u-boot-shr/u-boot/commits/pali
|
Re: u-boot for the RX-51 (N900)
All versions of u-boot (expect mine) need to have enabled R&D mode with disabled watchdogs. Mine version should not boot default Maemo5 correctly with enabled R&D.
So try boot mine version version again but disable R&D mode Problem is with watchdog... |
Re: u-boot for the RX-51 (N900)
Quote:
This at least on Hw Rev 2101 |
Re: u-boot for the RX-51 (N900)
Quote:
|
Re: u-boot for the RX-51 (N900)
well, I have to admit that I'm lost in all this. Before I was using kp v45 with u-boot and everything was working fine. But then my N900 kind of died. Now I have a new one with kp v48 so can someone tell me which u-boot should I install that is compatible with kp v48 so I can boot new release of MeeGo?
|
Re: u-boot for the RX-51 (N900)
Hi pali.... Seems like matan's version of u-boot ain't working for me. But if I compile stskeep's(no modifications) version directly U-Boot seems working fully. Could you also create one from stskeeps version? Without matan's patches just yours on stskeeps version?
|
Re: u-boot for the RX-51 (N900)
No, I will not rebase all patches on top of old u-boot tree. If somebody want can do it (all patches and branches are on gitorious). I'm prepairing rx-51 patches for merging into upstream.
Matan branch has only few commits ahead of stskeep. So you can use git bisect to find commit which break your device. Please let me know where is problem. I'd like to see that commit and fix it. |
Re: u-boot for the RX-51 (N900)
Thanks will do after weekends will look into git bisect first as I have no idea what it is yet :p
|
Re: u-boot for the RX-51 (N900)
See manpage for git-bisect
Code:
git-bisect - Find by binary search the change that introduced a bug |
Re: u-boot for the RX-51 (N900)
I have found out a very very strange problem.
When I use Pali's u-boot image (with power kernel v48) I have a very high power consumption on stand-by/idle A full charged battery discharge to empty in only 12-13 hours instead of many days. I have done some tests and I can confirm that on my phone (rev 2101): - With PR1.3 kernel (no u-boot) = normal power consumption - With Power kernel v48 with Matan's U-Boot = normal power consumption - With Power kernel v48 with Pali's U-Boot (prebuild image supplied by Pali) = very high power consumption Unfortunately I don't understand why |
Re: u-boot for the RX-51 (N900)
I have same problem with battery. It happends if I boot my builded u-boot binary. kernel-power wihout u-boot is ok. So this must be problem in u-boot.... But now I do not know where...
|
Re: u-boot for the RX-51 (N900)
i noticed the powerconsumption too.
maybe it has to do with twl4030 settings or with the C4-C0 state checkings. I ran powertop and noticed hign persentage of Cx compare to others... |
Re: u-boot for the RX-51 (N900)
I'm about to give up.
u-boot can't seem to find the internal emmc and 'external' sdcard cards anymore. 'mmc init 0' should give the external sdcard, 'mmc init 2' should give the internal emmc card. But these command just return 'no MMC card'. The strange thing is sometimes 'mmc init 1' does work and allows access to the external sdcard. Just booting noloboot is still no problem and shows both mmc available... Anybody any hints? |
Re: u-boot for the RX-51 (N900)
Bad: Now I'm testing all version of u-boot (all branches from gitorious) but no version can access to internal eMMC. I do not know where is problem...
And some good news, I fixed problem with scrolling console. |
Re: u-boot for the RX-51 (N900)
Pali, I was doing the same. Even took the master from denx.de
Sometimes it does work and I see the emmc (but not the external sdcard). I think the best change of getting it is start up o in plain maemo and then do a reboot (or power off) from the power-button menu. I think it is just u-boot not properly initialising the twl403 MMC pins. I'm also looking at the linux kernel sources on how mmc is inititialised (e.g. the nokia patches) and it seems linux is doing a lot more stuff than u-boot does (e.g. initialising clocks). |
Re: u-boot for the RX-51 (N900)
@pali, did you uplaod the fix for console scrolling somewhere? Thanks!
|
Re: u-boot for the RX-51 (N900)
1 Attachment(s)
Quote:
When using this new generic mmc driver, U-Boot tell me that mmc0 (should be external slot?) has bad voltage (Ok, when card is not inserted?). I tried enable mmc1 (omap_mmc_init(1); should be eMMC), no error shown, initialization OK, but again not working... Also tried mmc2, mmc3, ... but that initialization failed. U-Boot: Some MUXes are in board/nokia/rx51/rx51.h under section Wireless LAN (why?), GPIO_130 - GPIO_139. And initializing mmc is in drivers/power/twl4030.c function twl4030_power_mmc_init Quote:
If I think that new patches could be stable I will push it into gitorious. Console fix patch is attached. |
Re: u-boot for the RX-51 (N900)
Thanks for the patch Pali. A while ago I defined a 'clr' u-boot command to clear the screen so I could avoid going into the garbled screen mode.
I also spend several evenings trying to figure out how to get the mmcs online :( Also tried omap_mmc_init(x) wiht x=0,1,2. Added some twl4030_i2c calls to set voltage to MMC2 and VAUX3 (If I understand it correctly older n900 models need MMC2, newer ones VAUX3 pins). Maybe newer models have wireless ALN on MMC2 now hence the GPIO_130-139 stuff... I also noticed that twl403_power_mmc_init() is called by uboot but twl4030_power_init() is not. I added this function bit it did not help either... One other thing. I defined a u-boot backlight command to set the backlight level of the screen. Other the n900 starts up with a very dim screen. Using this command I can get a readable screen again. For now it is just a hack. I use generic_mmc too as I rebased on the latest denx master. apperantly the mmc naming scheme is changed by that. when I have an available mmc its is mmc1 and that indeed is the eMMC (so these times I was able to boot android as I installed nitdroid (and kernel and initramfs) on eMMC partition 5). |
Re: u-boot for the RX-51 (N900)
backlight support is good. I looked into U-Boot but it does not have any brightness/backlight interface. So setting initial level should be in misc_init_r (rx51.c) Can you create patch for that? I will include it into my patch series (for gitorious)
|
Re: u-boot for the RX-51 (N900)
Now I got eMMC working :) I will try to find which function it activated and create clean patch :)
|
Re: u-boot for the RX-51 (N900)
i'll make the patches available.
About the fixed console scrolling. I also tried this way before but it did not work for me then. But surely for ( i = 1; i < CONSOLE_COLS; ++i ) cant be correct. Although it results in proper screens, I see collorerd garbage on the last line while scrolling. I guess it should be for ( i = 1; i < CONSOLE_ROWS; ++i ) but when I try that the garbage stays. Very weird. With some experiments I figured for ( i = 1; i < 4*CONSOLE_ROWS; ++i ) seems to work fine, with the collored garbage on the last line... I am puzzeled while. Is the framebuffer bigger than anicipate. Does the n900 use double buffering???? |
Re: u-boot for the RX-51 (N900)
2 Attachment(s)
Here are patches which enable eMMC support (working on my n900, hw revision 2101).
|
Re: u-boot for the RX-51 (N900)
Quote:
|
Re: u-boot for the RX-51 (N900)
Quote:
|
Re: u-boot for the RX-51 (N900)
Quote:
News on power consumption problem ? |
Re: u-boot for the RX-51 (N900)
No, first I'm trying to make working version of u-boot...
|
Re: u-boot for the RX-51 (N900)
5 Attachment(s)
Pali, here are my patches. On top of your scollup fix I added a fix to use the memsetl() again.
Furthermore the clearscreen stuff and some cosmetic changes/fixes. |
Re: u-boot for the RX-51 (N900)
1 Attachment(s)
and the backlight patch
|
Re: u-boot for the RX-51 (N900)
First thanks for patches!
My comments: 0001-RX51-bootmenu-add-clr-command-to-clear-the-screen.patch.txt - Please add definitions directly to include/config_cmd_default.h and include/config_cmd_all.h (not into rx51) 0002-RX51-cfb_console-fix-cursor_fix-checks.patch.txt 0003-RX51-cfb_console-console_clear_line-fix-refacored-li.patch.txt - Thanks, this is reason why sometimes I got some bad pixels. I melt this patch into my series. 0004-drivers-video-cfb-console.c-Fix-function-console_scr.patch 0005-cfb_console-fix-console_scrollup.patch.txt - patches deleted (see below) 0006-RX51-add-command-to-set-screen-backlight.patch - there is missing some files in this patch. But we do not want to add new specific command only for n900 (not usefull for upstream). And I tested this patch and it break brightness in Maemo kernel. When I used this patch I was not able to change brightness in Maemo (via controlpanel or sysfs). Can you look at this error? === Correct implementation of function console_scrollup is: memcpyl(CONSOLE_ROW_FIRST, CONSOLE_ROW_SECOND, CONSOLE_SCROLL_SIZE); CONSOLE_SCROLL_SIZE is full, not without first 2 bits! This is working fine now. When I finish my patch series, I will commit all into gitorious |
Re: u-boot for the RX-51 (N900)
1 Attachment(s)
Quote:
To enable the command for rx51 I guess you still need to add the define to rx51.h manually. Quote:
What files are you missing? The reason that I added it in the n900 specific part is that I'm not sure if the command is useful on other devices. I guess that is the reason you added the regulator patches to the rx51.c file too. If they are generic enough I guess the regulator and backlight code could be moved to power/twl4030.c or friends. Quote:
memcpyl(CONSOLE_ROW_FIRST, CONSOLE_ROW_SECOND, 4*CONSOLE_SCROLL_SIZE >> 2); PS: maybe you should consider pushing the ANSI and bootmenu patches to denx asap. They are quite useful for everybody right now! And great you figured about the regulator stuff to enable the mmc cards! |
Re: u-boot for the RX-51 (N900)
These future N900 u-boot's images will have a working saveenv command or other solutions to persist modification to env ?
|
Re: u-boot for the RX-51 (N900)
Quote:
I'm prepairing rx51 config to load bootmenu configuration from eMMC part1 file bootmenu.scr. So changing bootmenu entires wil not need to recompile u-boot. So in Maemo (or in all other systems) will be ulility update-uboot which update bootmenu.scr file in eMMC (MyDocs). We can use similar configuration file like in bootmenu/multiboot for configuring menu entires. And for security, if keyboard will be closed this file will be ignored (so if somebody damage this file, still can boot maemo5 in internal flash) |
Re: u-boot for the RX-51 (N900)
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: u-boot for the RX-51 (N900)
Quote:
(4*C>>2) = ((C<<2)>>2) = clear two most significative bits For example suppose C as byte (unsigned): If C = 46 (0010 1110) then (4*C>>2) = 46 (0010 1110) also, but if C = 114 (0111 0010) then (4*C>>2) = 50 (0011 0010) |
Re: u-boot for the RX-51 (N900)
Quote:
I took the backlight code right from the kernel source however. Quote:
But in this form it will show the weirdness of needing to scroll way beyond the actual framebuffer. Quote:
I have 2204. My previous on was a 2104 I think (not sure though) and u-boot worked fine with that model too. |
Re: u-boot for the RX-51 (N900)
Quote:
Code:
printf("%#x %#x\n", 4*114 >> 2, 114);Code:
0x72 0x72 |
| All times are GMT. The time now is 21:57. |
Page 3 of 6 |
|
Prev |
1 2 3
4 5
|
Next
| Last
vBulletin® Version 3.8.8