Ruben Viets | 3 Sep 21:20 2009
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

Hi,

More info about compiling of the kernel 2.6 stuff.
- Found out to svn checkout the minibook-kernel files from the mips-devel project in linuxtogo, very nice.
- I use the mipsel-linux-gnu- cross compiler 4.3.3 (debian gnu)
- make uImage and modules, compiling is ok.
 
Five issues:

1) Sound is not working in the angstrom 2.6 kernel uImage. Which module/modules are needed.
 
2) shutdown doesn't work.
 
3) Buttons next to touchpad don't work.
 
4) When I try to insmod my own compiled modules(from the 2.6.24.3-minibook) to the angstrom uImage I get below error:
:disagrees about version of symbol struct_module
-1 Invalid module format

5) My own compiled kernel uImage stucks at boot due to no startup of root fs.
How can you change the cmdline options for boot (f.i. mem=128M, console=ttyS0 root=/dev/mmca2 ),
somehow when I change the CONFIG_CMDLINE= it still uses a different default one root=/dev/ssfdca1 ?

Anyone advice for one of the issues ?

Thanx.

Grt Ruben.

Express yourself instantly with MSN Messenger! MSN Messenger
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
Ruben Viets | 3 Sep 22:41 2009
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

Ok. issue 4) solved. Was caused by config_preempt (was enabled on my compiled version, and not enabled for angstrom kernel)

Now compile the modules for kernel 2.6 (without preempt) and use them in the angstrom uImage. Nice. 
Four issues left.

Grt Ruben.

From: r_viets-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
To: mipsbook-devel-CQP9ExgZy9rrZ44/DZwexQ@public.gmane.org
Date: Thu, 3 Sep 2009 19:20:17 +0000
Subject: Re: [Mipsbook-devel] lenny and mipsandroid with softfloat kernel 2.6 uImage

.ExternalClass .EC_hmmessage P {padding:0px;} .ExternalClass body.EC_hmmessage {font-size:10pt;font-family:Verdana;} Hi,

More info about compiling of the kernel 2.6 stuff.
- Found out to svn checkout the minibook-kernel files from the mips-devel project in linuxtogo, very nice.
- I use the mipsel-linux-gnu- cross compiler 4.3.3 (debian gnu)
- make uImage and modules, compiling is ok.
 
Five issues:

1) Sound is not working in the angstrom 2.6 kernel uImage. Which module/modules are needed.
 
2) shutdown doesn't work.
 
3) Buttons next to touchpad don't work.
 
4) When I try to insmod my own compiled modules(from the 2.6.24.3-minibook) to the angstrom uImage I get below error:
:disagrees about version of symbol struct_module
-1 Invalid module format

5) My own compiled kernel uImage stucks at boot due to no startup of root fs.
How can you change the cmdline options for boot (f.i. mem=128M, console=ttyS0 root=/dev/mmca2 ),
somehow when I change the CONFIG_CMDLINE= it still uses a different default one root=/dev/ssfdca1 ?

Anyone advice for one of the issues ?

Thanx.

Grt Ruben.

Express yourself instantly with MSN Messenger! MSN Messenger
Express yourself instantly with MSN Messenger! MSN Messenger
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
Dr. H. Nikolaus Schaller | 4 Sep 12:31 2009
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

Hi Ruben,
great! Your success made me invest an hour to try myself...

Am 03.09.2009 um 21:20 schrieb Ruben Viets:

> - Found out to svn checkout the minibook-kernel files from the mips- 
> devel project in linuxtogo, very nice.

I  checked out the repos through

svn co svn://projects.linuxtogo.org/svn/minibook-kernel/linux-2.6.24.3

but that appears to be incomplete. And make simply says make: *** No  
rule to make target `zImage'.  Stop.

What am I missing?

BR,
Nikolaus
Ruben Viets | 4 Sep 21:49 2009
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

Hi Nikolaus,
 
I use the files from linux-2.6.24.3-minibook directory.
Copy the CONFIG_ARD to .config, fix the cross-compiler in the Makefile to mipsel-linux-gnu- (I use ubuntu hardy mipsel-linux-4.3 one)
make oldconfig or make xconfig to add modules yourself.
make modules
make uImage
 
Grt Ruben.
 
> From: hns-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org
> To: mipsbook-devel-CQP9ExgZy9rrZ44/DZwexQ@public.gmane.org
> Date: Fri, 4 Sep 2009 12:31:11 +0200
> Subject: Re: [Mipsbook-devel] lenny and mipsandroid with softfloat kernel 2.6 uImage
>
> Hi Ruben,
> great! Your success made me invest an hour to try myself...
>
> Am 03.09.2009 um 21:20 schrieb Ruben Viets:
>
> > - Found out to svn checkout the minibook-kernel files from the mips-
> > devel project in linuxtogo, very nice.
>
> I checked out the repos through
>
> svn co svn://projects.linuxtogo.org/svn/minibook-kernel/linux-2.6.24.3
>
> but that appears to be incomplete. And make simply says make: *** No
> rule to make target `zImage'. Stop.
>
> What am I missing?
>
> BR,
> Nikolaus
>
> _______________________________________________
> Mipsbook-devel mailing list
> Mipsbook-devel-CQP9ExgZy9rrZ44/DZwexQ@public.gmane.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel

What can you do with the new Windows Live? Find out
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
Andy Valencia | 5 Sep 16:21 2009

Re: Mipsbook-devel Digest, Vol 10, Issue 2

--------
[mipsbook-devel-request@... writes:]

> I use the files from linux-2.6.24.3-minibook directory. 

> Copy the CONFIG_ARD to .config, fix the cross-compiler in the Makefile to mipsel-linux-gnu-
> (I use ubuntu hardy mipsel-linux-4.3 one)
> 
> make oldconfig or make xconfig to add modules yourself.
> 
> make modules 
> 
> make uImage

Thanks for all the great starting points!  Now you've got me motivated.
Do I understand that I have to build my own MIPS GCC tool chain?  Which
sources did you grab?  It looks like Ubuntu doesn't have a standard
package for this....

Andy
Ruben Viets | 5 Sep 18:04 2009
Picon

Re: Mipsbook-devel Digest, Vol 10, Issue 2

Nice,
 
You need to add debian repository to adept manager. Then it is not necessary to compile the sources for a toolchain.
The one I to add: http://www.embedian.org/debian unstable main. Check http://projects.kwaak.net/twiki/bin/view/Epc700/CompilingAKernel
 
Packages I used for the crosscompiling of linux-2.6.24.3-minibook kernel 2.6:
binutils-mipsel-linux-gnu
gcc-4.3-mipsel-linux-gnu-base
gcc-4.3-mipsel-linux-gnu
 
You can also use the toolchain provided by Nils, see previous thread: mipsbook-devel Softfloat toolchain...:
 
Grt Ruben.
 
> To: mipsbook-devel-CQP9ExgZy9rrZ44/DZwexQ@public.gmane.org
> From: ajv-695-691-0800-0CreqYhQrwk@public.gmane.org
> Date: Sat, 5 Sep 2009 07:21:29 -0700
> Subject: Re: [Mipsbook-devel] Mipsbook-devel Digest, Vol 10, Issue 2
>
> --------
> [mipsbook-devel-request-CQP9ExgZy9rrZ44/DZwexQ@public.gmane.org writes:]
>
> > I use the files from linux-2.6.24.3-minibook directory.
>
> > Copy the CONFIG_ARD to .config, fix the cross-compiler in the Makefile to mipsel-linux-gnu-
> > (I use ubuntu hardy mipsel-linux-4.3 one)
> >
> > make oldconfig or make xconfig to add modules yourself.
> >
> > make modules
> >
> > make uImage
>
> Thanks for all the great starting points! Now you've got me motivated.
> Do I understand that I have to build my own MIPS GCC tool chain? Which
> sources did you grab? It looks like Ubuntu doesn't have a standard
> package for this....
>
> Andy
>
> _______________________________________________
> Mipsbook-devel mailing list
> Mipsbook-devel-CQP9ExgZy9rrZ44/DZwexQ@public.gmane.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel

Express yourself instantly with MSN Messenger! MSN Messenger
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
Dr. H. Nikolaus Schaller | 5 Sep 21:56 2009
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

Hi Ruben and all,
now I came much farther but still not to a kernel...

Firstly, it turned out that my build-system has a cache that tried to  
checkout to a case-insensitive file system (I am doing this on MacOS  
X) and therefore I did not get the complete sources (and missed the  
error message). After fixing this, fetching sources now works with the  
co command I had tried before. But you get in total three kernel  
source trees (there is also a vanilla kernel and the original  
jz-20080530 in the main SVN).

To get only the right one, I now just fetch the kernel by:

svn co svn://projects.linuxtogo.org/svn/minibook-kernel/linux-2.6.24.3- 
minibook

With this I got:

Checked out revision 33.

Then I did:

$ cd linux-2.6.24.3-minibook
$ export PATH=<path to toolchain>:$PATH
$ export TARGET=mipsel-debianetch-linux-gnu            (this is my  
toolchain - working well in user space but never tested for kernels)
$ cp CONFIG_ARD .config
$ make V=2 ARCH=mips CROSS_COMPILE=${TARGET}- zImage uImage

But I got:

scripts/kconfig/conf -s arch/mips/Kconfig
.config:1173:warning: trying to assign nonexistent symbol  
YAFFS_DISABLE_CHUNK_ERASED_CHECK
.config:1175:warning: trying to assign nonexistent symbol  
YAFFS_CHECKPOINT_RESERVED_BLOCKS
*
* Restart config...
*
*
* File systems
*
Second extended fs support (EXT2_FS) [Y/n/m/?] y
   Ext2 extended attributes (EXT2_FS_XATTR) [Y/n/?] y
     Ext2 POSIX Access Control Lists (EXT2_FS_POSIX_ACL) [N/y/?] n
     Ext2 Security Labels (EXT2_FS_SECURITY) [N/y/?] n
   Ext2 execute in place support (EXT2_FS_XIP) [N/y/?] n
Ext3 journalling file system support (EXT3_FS) [Y/n/m/?] y
   Ext3 extended attributes (EXT3_FS_XATTR) [Y/n/?] y
     Ext3 POSIX Access Control Lists (EXT3_FS_POSIX_ACL) [N/y/?] n
     Ext3 Security Labels (EXT3_FS_SECURITY) [N/y/?] n
Ext4dev/ext4 extended fs support development (EXPERIMENTAL)  
(EXT4DEV_FS) [N/m/y/?] n
Reiserfs support (REISERFS_FS) [N/m/y/?] n
JFS filesystem support (JFS_FS) [N/m/y/?] n
XFS filesystem support (XFS_FS) [N/m/y/?] n
GFS2 file system support (GFS2_FS) [N/m/y/?] n
OCFS2 file system support (OCFS2_FS) [N/m/y/?] n
Minix fs support (MINIX_FS) [Y/n/m/?] y
ROM file system support (ROMFS_FS) [N/m/y/?] n
Inotify file change notification support (INOTIFY) [Y/n/?] y
   Inotify support for userspace (INOTIFY_USER) [Y/n/?] y
Quota support (QUOTA) [N/y/?] n
Dnotify support (DNOTIFY) [Y/n/?] y
Kernel automounter support (AUTOFS_FS) [N/m/y/?] n
Kernel automounter version 4 support (also supports v3) (AUTOFS4_FS)  
[N/m/y/?] n
Filesystem in Userspace support (FUSE_FS) [N/m/y/?] n
YAFFS2 file system support (YAFFS_FS) [Y/n/m/?] y
   512 byte / page devices (YAFFS_YAFFS1) [Y/?] y
     Use older-style on-NAND data format with pageStatus byte  
(YAFFS_9BYTE_TAGS) [N/y/?] (NEW) aborted!

Console input/output is redirected. Run 'make oldconfig' to update  
configuration.

make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make[2]: *** No rule to make target `vmlinux', needed by `arch/mips/ 
boot/compressed/vmlinux.bin.gz'.  Stop.
make[1]: *** [zImage] Error 2
make: *** [zImage] Error 2

It looks as if the predefined configure script does not match the  
kernel code and has no YAFFS configure option.

Is there an updated CONFIGURE file? And any more hints?

BR,
Nikolaus

Am 04.09.2009 um 21:49 schrieb Ruben Viets:

> Hi Nikolaus,
>
> I use the files from linux-2.6.24.3-minibook directory.
> Copy the CONFIG_ARD to .config, fix the cross-compiler in the  
> Makefile to mipsel-linux-gnu- (I use ubuntu hardy mipsel-linux-4.3  
> one)

> make oldconfig or make xconfig to add modules yourself.
> make modules
> make uImage
>
> Grt Ruben.
>
> > From: hns@...
> > To: mipsbook-devel@...
> > Date: Fri, 4 Sep 2009 12:31:11 +0200
> > Subject: Re: [Mipsbook-devel] lenny and mipsandroid with softfloat  
> kernel 2.6 uImage
> >
> > Hi Ruben,
> > great! Your success made me invest an hour to try myself...
> >
> > Am 03.09.2009 um 21:20 schrieb Ruben Viets:
> >
> > > - Found out to svn checkout the minibook-kernel files from the  
> mips-
> > > devel project in linuxtogo, very nice.
> >
> > I checked out the repos through
> >
> > svn co svn://projects.linuxtogo.org/svn/minibook-kernel/ 
> linux-2.6.24.3
> >
> > but that appears to be incomplete. And make simply says make: *** No
> > rule to make target `zImage'. Stop.
> >
> > What am I missing?
> >
> > BR,
> > Nikolaus
> >
> > _______________________________________________
> > Mipsbook-devel mailing list
> > Mipsbook-devel@...
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
>
> What can you do with the new Windows Live? Find out  
> _______________________________________________
> Mipsbook-devel mailing list
> Mipsbook-devel@...
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
Dr. H. Nikolaus Schaller | 5 Sep 22:02 2009
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

Something to remember to change in future...

Am 05.09.2009 um 21:56 schrieb Dr. H. Nikolaus Schaller:

> $ cp CONFIG_ARD .config

I just found out that it would be good practice to store this default  
config file in

	arch/mips/configs/minibook_defconfig

BR,
Nikolaus
Benjamin Valentin | 5 Sep 22:54 2009
Picon
Picon

Re: lenny and mipsandroid with softfloat kernel 2.6 uImage

On Fri, 4 Sep 2009 19:49:28 +0000
Ruben Viets <r_viets@...> wrote:

> 
> Hi Nikolaus,
> 
>  
> 
> I use the files from linux-2.6.24.3-minibook directory. 
> 
> Copy the CONFIG_ARD to .config, fix the cross-compiler in the
> Makefile to mipsel-linux-gnu- (I use ubuntu hardy mipsel-linux-4.3
> one)
> 
> make oldconfig or make xconfig to add modules yourself.
> 
> make modules 
> 
> make uImage

I did so using the mipseltools-gcc412-glibc261 provided by Ingenic, I
get a uImage, but when I flash it to my mipsbook, there is only Tux in
the upper right corner and Caps Lock LED on - seems to be stuck there.
rootfs is Debian etch.

regards
benjamin
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
Bas Wijnen | 6 Sep 12:28 2009
Picon

Iris source is online

Hello,

Previously I wrote that the source for my kernel, Iris, would be put on
savannah.nongnu.org.  However, they still haven't responded to my
request.  Furthermore, I decided to target not only the Trendtac, but
also the NanoNote.  That made it logical to host the sources on the
server of the makers of that device, http://www.qi-hardware.com.

The sources can be found under the projects link from the menu bar at
the top.  Under the report directory there is a full explanation for how
to build them, including how to set up a cross-compiler.  I tried to
make it all as simple as possible, but suggestions for improvement are
very welcome.[0]

The current sources build an uimage which can run on the Trendtac.
Porting to the NanoNote will be done when I receive that device.  It has
a working lcd framebuffer driver, leds, keyboard and touchpad buttons.
The current system sets up the drivers and waits for events.  Key
presses are signaled by sending a character to the screen; touchpad
button events by changing the leds.  In other words, it demonstrates
that the device drivers are working.

I defined several interfaces for device types.  Any program can provide
such an interface, and behave as such a device.

Next steps are to make the current drivers follow the interfaces (as
far as they don't yet), to make more drivers, in particular something
with a filesystem, and to allow the user to start programs.

Comments (and help) are much appreciated.

Thanks,
Bas

[0] I realize that the build process would be much easier if I would
    package libshevek and pypp, which are build-dependencies.  However,
    I don't currently want to invest the time that would be required for
    making sure the packaging is done right (especially for libshevek).
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel

Gmane