All times are UTC-06:00




Post new topic  Reply to topic  [ 26 posts ] 
Author Message
 Post subject:
PostPosted: Wed Oct 20, 2010 7:38 am 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1071
Quote:
Quote:
OK. How can I check it out from git? http://www.gitorious.org/efikamx/linux- ... x-10.07.11 , which is linked from the kernel support page seems to be over a month old, so dates well before your fixes...
An EfikaMX kernel will build fine from the efikasb-10.07.11 branch.
OK. What is the exact URL and/or git command line to do the initial checkout? So I can test if turning off the machine works, or I need to report a bug on launchpad...

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 3:01 pm 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1071
The new kernel works nicely. Only the halt/reboot bug remained, many little annoyances are gone (MMC works, X does not eat CPU, partitions are found on USB HDD when already plugged in during boot, etc.). Thanks for the great support!

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Wed Oct 27, 2010 6:28 pm 
Offline
Genesi

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1443
Hi Peter, it seems normal that we can always count on you. As such, there is a smartbook shipping to you this week.

Thank you. We appreciate your diligence.

Best regards,
R&B :)

_________________
http://bbrv.blogspot.com


Top
   
 Post subject:
PostPosted: Wed Oct 27, 2010 10:13 pm 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1071
Thank you!

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Thu Nov 04, 2010 8:08 am 
Offline

Joined: Fri Oct 29, 2010 10:13 am
Posts: 15
Location: Szczecin, Poland
This is my first post here - got Smartbook during UDS-N.

Cloned kernel from gitorious, used efikasb-10.07.11 branch:
Code:
commit 7eeed0cee10ec7ed8966dd6aacdd1ab825a492e8
Author: Matt Sealey <matt@genesi-usa.com>
Date: Fri Oct 29 20:34:12 2010 -0500

efikamx watchdog to pmic - makes more sense here (backported from merge-10.07.11)
add SPI NOR registration back in
Copied config from device and started build:
Code:
CC arch/arm/mach-mx5/mx51_efikasb_gpio.o
arch/arm/mach-mx5/mx51_efikasb_gpio.c: In function ‘mx51_efikasb_spi_chipselect_active’:
arch/arm/mach-mx5/mx51_efikasb_gpio.c:1051:42: error: ‘SPI_PAD_CONFIG’ undeclared (first use in this function)
arch/arm/mach-mx5/mx51_efikasb_gpio.c:1051:42: note: each undeclared identifier is reported only once for each function it appears in
This can be "solved" by copying SPI_PAD_CONFIG define from arch/arm/mach-mx5/mx51_efikamx_spi.c file:
Code:
#define SPI_PAD_CONFIG (PAD_CTL_HYS_ENABLE | PAD_CTL_PKE_ENABLE | PAD_CTL_DRV_HIGH | \
PAD_CTL_SRE_FAST)
But kernel does not link anyway:
Code:
arch/arm/mach-mx5/built-in.o: In function `.LANCHOR0':
mx51_efikasb_powerkey.c:(.data+0x7c28): undefined reference to `mx51_efikasb_gpio_spi_chipselect_active'
mx51_efikasb_powerkey.c:(.data+0x7c2c): undefined reference to `mx51_efikasb_gpio_spi_chipselect_inactive'
make: *** [.tmp_vmlinux1] Error 1
And now I wonder still how to build Smartbook kernel...

UPDATE: "git reset HEAD~2" helped - kernel built.


Top
   
 Post subject: Same problems
PostPosted: Fri Nov 05, 2010 8:02 am 
Offline

Joined: Thu Oct 28, 2010 11:42 am
Posts: 4
I see the same thing, but git reset HEAD~2 didn't help me. I'll keep going. Meanwhile, is there an easy guide to creating a boot SDD (one that doesn't reinstall Maverick, just boots with that kernel and usual maverick root)?

Dave

_________________
CTO, Linaro
www.linaro.org


Top
   
 Post subject: Re: Same problems
PostPosted: Fri Nov 05, 2010 1:50 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1594
Location: Austin, TX
Quote:
I see the same thing, but git reset HEAD~2 didn't help me. I'll keep going. Meanwhile, is there an easy guide to creating a boot SDD (one that doesn't reinstall Maverick, just boots with that kernel and usual maverick root)?

Dave
Yes, have a look at flash-kernel - it generates a script with mkimage which is a u-boot autoscr. All you need to do is pull out that script, set your root device, then mkimage it. That resulting file on the first partition of your SD named "boot.scr" will be used to boot your system.

Essentially you want something like this (ramdisk and kernel files you need to change).
Code:
setenv ramdisk uInitrd;
setenv kernel uImage;
setenv bootargs console=tty1 root=/dev/sda2 rootwait rw quiet splash;
${loadcmd} ${ramdiskaddr} ${ramdisk};
if imi ${ramdiskaddr}; then; else
setenv bootargs ${bootargs} noinitrd;
setenv ramdiskaddr "";
fi;
${loadcmd} ${kerneladdr} ${kernel}
if imi ${kerneladdr}; then
bootm ${kerneladdr} ${ramdiskaddr}
fi;
If you need serial console, add to bootargs:
Code:
console=${console}
Our U-Boot has a variable for the exact same serial port used to do U-Boot logging, so that you do not have to reconfigure your terminal baud rate or change a serial cable to a different port or so :)

And make it like this:
Code:
mkimage -A arm -O linux -a 0 -e 0 -T script -C none -n "EfikaMX Boot Script" -d myboot.script boot.scr

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Sat Nov 06, 2010 10:13 am 
Offline

Joined: Thu Oct 28, 2010 11:42 am
Posts: 4
Neko, thanks, that works a treat. if I could only build a kernel, I could test it too...

Dave

_________________
CTO, Linaro
www.linaro.org


Top
   
 Post subject:
PostPosted: Tue Nov 16, 2010 5:34 am 
Offline

Joined: Fri Oct 29, 2010 10:13 am
Posts: 15
Location: Szczecin, Poland
Code:
git clone git://gitorious.org/efikamx/linux-kernel.git
cd linux-kernel/
git checkout origin/efikasb-10.08.00
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
cp arch/arm/configs/mx51_efikasb_devtmpfs_defconfig .config
make uImage modules -j8
fakeroot make deb-pkg
Was all I needed to build kernel.


Top
   
PostPosted: Tue Nov 16, 2010 9:35 am 
Offline

Joined: Thu Oct 28, 2010 11:42 am
Posts: 4
Thanks trying that now (but I shouldn't need to export ARCH or CROSS as I'm building natively. I'll post a reply once I succeed!

Dave

_________________
CTO, Linaro
www.linaro.org


Top
   
 Post subject: Works
PostPosted: Wed Nov 17, 2010 8:34 am 
Offline

Joined: Thu Oct 28, 2010 11:42 am
Posts: 4
Thanks. I can now build, try out and install a kernel. I'm doing this in spare time, so a bit slow. Thanks for the information...

Dave

_________________
CTO, Linaro
www.linaro.org


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 26 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group