Sorry, wrong address for the group.
On 16 Apr 2013 20:37, "Wolfgang Tintemann auf Windows 7 mit Windows Mail" <wktin...@online.de> wrote:
>
> Hello Alexey Charkov,
>
> sorry that I dare to molest you.
>
> I read in the net about you dealing with Wondermedia devices
> ( tablets, wm8650 etc. ).
>
> I own a wm8850 NETBOOK and started to try to cross-compile a
> 3.0.8 kernel on a x86 machine under Linux Mint for it.Hi Wolfgang,
From what I read, it seems that you are trying to compile the sources that WonderMedia has just released recently. Unfortunately, I'm not sure if those are in a decent enough condition to actually build a kernel, as you might have been the first one to try:-)
> 1. do you know about the progress in porting a Linux kernels
> to wm8850 by cross-compiling ?
> I am only interested in starting it from the SD card - no flashing.Well, cross-compiling actually has nothing to do with porting. Porting is about creating necessary code for hardware support, while cross-compiling is about building the kernel image on a machine with different CPU architecture (like your x86 box).
From what I know, latest 3.9-rc kernels from Linus should work just fine on wm8850, thanks to the work that Tony Prisk puts into this port. There are also building instructions on Tony's wiki. Some features will still be missing, like sound and internal NAND flash, for example. But you'll be able to run normal Linux distros and browse the Internet at least.
> 2. if you have the time please have a look at this error messag(es)
> and see if you can give me a helpful hint :
>
> CC arch/arm/vfp/vfpmodule.o
> make[1]: *** No rule to make target `arch/arm/vfp/entry.o', needed by `arch/arm/vfp/vfp.o'. Stop.
>
> or
>
> CC arch/arm/kernel/elf.o
> make[2]: *** No rule to make target `arch/arm/kernel/entry-armv.o', needed by `arch/arm/kernel/built-in.o'. Stop.Either the sources are broken, or there is something wrong with the way you build them. Note that typically during cross-compilation you'd also need to set the CROSS_COMPILE variable, either in kernel config or on make command line.
> Does that mean that the source of the kernel is in bad shape
> or do I make errors in the make ARCH=arm xconfig dialog ?You can also try 'make mrproper' on the kernel tree before building, to ensure that there are no leftovers from other builds.
Note that I've also Cc'd our mailing list on this reply. Usually it makes sense to post such general questions there, so that you have more than one potential respondent. It also lets future googlers find the reply there :-)
Best,
Alexey>
> MfG: W. Tintemann, BRDeutschland
> ------------------------------------------------------------------------------------------------
> In hundert Jahren
>
> Was wird in hundert Jahren Sein?
> Was wird mit uns geschehen?
> Man weiß es nicht, denn niemand hier
> kann in die Zukunft sehen.
> Doch etwas kann man jetzt schon tun:
> Man kann die Zukunft denken.
> Und tut man dies, dann kann man sie
> vielleicht zum Guten lenken.
>
> Paul Maar
>
5) Build the image
cat arch/arm/boot/zImage arch/arm/boot/wm8850-w70v2.dtb > arch/arm/boot/zImage_w_dtb
mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n "My Linux" -d arch/arm/boot/zImage_w_dtb ~/uzImage.bin
This command line specifies the LOADADDR and ENTRY points.OK, I did that : have now an uzImage.bin
What concerns the modules I have to look into the config dialog.
Do I understand right that the -a 0x8000 and -e 0x8000 in the
mkimage have an effect on how I have to write my wmt_scriptcmd.txt
file ?
Until now there was a bootm 0 command at the end. Has that to be
modified to bootm 8000 or bootm 0x8000 or the decimal value ?
I also remember a fatload command which might be modified somehow ?
Thank you, forgot that...
I now tried a cross-compiling make ARCH=arm ... modules command and get
these messages at the end of stage 1
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 1804 modules
ERROR: "__udivdi3" [sound/soc/codecs/snd-soc-wm8974.ko] undefined!
ERROR: "__umoddi3" [sound/soc/codecs/snd-soc-wm8974.ko] undefined!
ERROR: "__udivdi3" [sound/soc/codecs/snd-soc-wm8940.ko] undefined!
ERROR: "__umoddi3" [sound/soc/codecs/snd-soc-wm8940.ko] undefined!
ERROR: "__udivdi3" [sound/soc/codecs/snd-soc-wm8753.ko] undefined!
ERROR: "__umoddi3" [sound/soc/codecs/snd-soc-wm8753.ko] undefined!
ERROR: "__udivdi3" [sound/soc/codecs/snd-soc-wm8510.ko] undefined!
ERROR: "__umoddi3" [sound/soc/codecs/snd-soc-wm8510.ko] undefined!
ERROR: "__sync_fetch_and_and_4" [drivers/staging/line6/line6usb.ko] undefined!
ERROR: "__sync_fetch_and_or_4" [drivers/staging/line6/line6usb.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
BTW : I cant imagine that 1804 modules are necessary for a wm8850 device... (?)
E.g. there were myriads of file sytem (fs) modules...
Is it better to take/try another kernel as 3.9-rc7 ? Perhaps a 3.8 one ?
On Fri, Apr 19, 2013 at 12:34 PM, wkt <wktin...@gmail.com> wrote:
> make ARCH=arm INSTALL_MOD_PATH=/home/wkt8850nb modules_install
>
> cp: cannot stat `/home/kernel-3.9-rc7/modules.order': No such file or
> directory
> make: *** [_modinst_] Error 1>
>
> After a new kernel cross-compilation I tried the above command.
>
> Did I miss something my xconfig dialog ?
> As I saw there are many M option settings : so I did expect modules in the
> INSTALL_MOD_PATH - but there is only an empty lib/modules/3.9.0-rc7 dir
>
> --
> You received this message because you are subscribed to the Google Groups
> "VT8500/WM8505 Linux Kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vt8500-wm8505-linux-kernel+unsub...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Looks like you didn't actually build the modules - this usually
happens when you only call "make uImage" or "make zImage". You need
something like "make modules" before you can do modules_install...
Regards,
Peter
Sure, no problem :-) Download this file and copy it to .config in
kernel build directory:
http://relghuar.net/.config.wm8850
After you copy it, call make menuconfig, change support to wm8750 and
save it again to sync it with your sources, I have some local changes
inside (platform via-rhine and device-tree gpio-charger for instance).
Btw. I've checked my build, there's less than 500 module binaries...
Above my best result so far -/
2 remarks :1. if I use rootfstype explicitly in bootargs then the screen remains dark.2. my impression according to my tests is that a boot from mmcblk0p2 does not work.
But may be I make some other errors - especially I am unsure about what content /etc/fstabshould have ( and what definitely not ). Also interesting would be the so called "populating of /dev"with mknod commands : what would be required. E.g. I have no /dev/input in my disro.
I grabbed a Debian non-GUI rootf from the Android app "Complete Installer Linux"and made some modifications on it ( /dev, fstab, hostname, /etc/network/interfaces, /lib/modules )emdebian - sounds wonderful. Where can I get it from ?
Am Dienstag, 23. April 2013 18:01:10 UTC+2 schrieb Sean Lee:Hi wkt,Where do you get your rootfs?My WM8850 netbook can boot to login prompt with uzImage.bin (Peter's config) and emdebian rootfs built for WM8650.The rootfs is placed in ext3 filesystem in SD card. (mmcblk0p2)Although there are still some issues have to be fixed. It always shows me "Unable to determine your tty name".If you don't have an available rootfs, how about trying to build yours with emdebian?Hope this helpful.Thank you, Peter! Your config is really helpful for me. :)wkt於 2013年4月23日星期二UTC+8下午10時35分30秒寫道:
Wonder(media)ful good news Sean,
I followed the steps on your blog and all works perfectly.
2nd boot successfully completed ! Great work.
Perhaps someone also interested in configuring now this
core emdebian could open a thread where one could discuss
whether there is away to get now e.g. X11 and network or
even sound running...
Could you post a download of your .config file of your kernel
on your blog ? Or is this file protected/private only ?
I think I could then study it and make the necessary modules (?) and
perhaps then start my other Debian with GUI from "Complete Linux Installer"
Android app.
Hi Peter,
your tip with the contrast file solved my problem :
on my device/embedian Linux I ran this
sudo echo -n 26 > /sys/devices/soc.0/d8051700.fb/contrast
Now the XFCE GUI looks fine and is fully usable.
Dont know how to handle the "git". I will have a look at the URLs to see
whether I understand whats to do.
What I lack at the moment is LAN eth0 detection and the internal WiFi.
Do your URLs handle these problems already ?
I am quite content now with the state of my system and can go on building it up.
Sorry, I am still studying the basics of kernel building.
So I cant deal with professional tools like "git" at this moment.
Will have a look later...
Under "internal WiFi" I understood not an USB stick I plug
manually into one ( of the 2 on my device ) external USB ports
but the one in the device itself : under wm8650 I always
worked with a module called rt3070sta.ko ( or rt5370sta.ko ??? )
With my kernel which runs the Emdebian quite well I also
run an Ubuntu 12.04 LTS system.
Here I have a special sproblem when I boot getting these messages :
>Unknown filesystem type devpts
>mount /dev/pts status 32
>Filesystem could not be mounted : /dev/pts
>Plymouth command failed
>Disconnected from Plymouth
and then it boots its way. BUT : if I open the Terminal under the GUI
i get a queer message and no prompt - so I suspect the cause might be
the messages... (?)
Did I miss something in my kernel config ( as I dont get these messages
with the kernel of Sean Lee blog - also the Terminal works with his )
In the www I found a hint to set CONFIG_UNIX98_PTYS=y ( is set in my config )
and to look under Filesystems->Pseudo filesystems for "Virtual memory filesystem
support" - bot this config option isnt shown in my xconfig.
Another problem is a complete garbage on my ALT+Fx consoles. Messages and
file contents are not sequentially scrollable but former shown lines come back.
Also lines are not cleared to the end.
I ran as recommended abovegit clone git://github.com/linux-wmt/linux-vtwmThen I took my test .config file and when I compiled the kernel I wasprompted to activate the Velocity driver - what I did.The kernel compilation came to a halt with the error messages alreadyreported in the thread about Velocity networking :CC drivers/net/ethernet/via/via-velocity.o
drivers/net/ethernet/via/via-velocity.c: In function ‘velocity_suspend’:
drivers/net/ethernet/via/via-velocity.c:3170: error: expected ‘;’ before ‘else’
drivers/net/ethernet/via/via-velocity.c: In function ‘velocity_resume’:
drivers/net/ethernet/via/via-velocity.c:3249: error: implicit declaration of function ‘pci_get_devdata’
drivers/net/ethernet/via/via-velocity.c:3249: warning: assignment makes pointer from integer without a cast
drivers/net/ethernet/via/via-velocity.c: In function ‘velocity_platform_suspend’:
drivers/net/ethernet/via/via-velocity.c:3300: error: ‘state’ undeclared (first use in this function)
drivers/net/ethernet/via/via-velocity.c:3300: error: (Each undeclared identifier is reported only once
drivers/net/ethernet/via/via-velocity.c:3300: error: for each function it appears in.)
drivers/net/ethernet/via/via-velocity.c: At top level:
drivers/net/ethernet/via/via-velocity.c:3309: warning: initialization from incompatible pointer type
drivers/net/ethernet/via/via-velocity.c:3310: warning: initialization from incompatible pointer type
drivers/net/ethernet/via/via-velocity.c:3336: warning: initialization from incompatible pointer type
make[4]: *** [drivers/net/ethernet/via/via-velocity.o] Error 1
make[3]: *** [drivers/net/ethernet/via] Error 2
make[2]: *** [drivers/net/ethernet] Error 2
make[1]: *** [drivers/net] Error 2make: *** [drivers] Error 2Maybe I dont fully understand how to work with git...
Tony, you wrote :
In drivers->graphics->framebuffers, you can select the wm8505 framebuffer driver - ensure that 'accelerated raster ops' is unchecked.
in make xconfig I find drivers->graphics->framebuffers->wm8505 framebuffer driverBUT : where is "accelerated raster ops" ???
Hi Tony,I Have now the options below in my make xconfig tree.I am somewhat confused now as you wrote "ensure that 'accelerated raster ops' is unchecked"( what I did !!! ) but below you have the option checked. Whats correct ?I did a new kernel compilation and now also the velocity.c was compiled : fine !But if I boot my system the screen turns first glaringly white and the gets dimmed downto a dark blue/grey color... No console messages any more...
@PeterI would be glad if sometime the Rhine driver would run/work.I personally am in absolutely no hurry.I will check the framebuffer settings as said by Tony.in the bootargs I use(d) /dev/tty1 as console.May i ask about sound ? What is the state of a driver ?This is what i miss most... hearing a little bit of music/radio... :)
1. I am a little bit disappointed about the ugly source state of theWondermedia software. But on the other side I see no sense inporting any source into the Linux kernels if e.g. sound will neverrun on the devices...
2. I wanted to have access to the Android partitions in flash memoryfrom my Linux versions.So i recompiled the 3.9.0-rc7 kernel after config-ing the MTD stuffas far as I found information in the net about this technology.But after booting no flash to be seen in /proc/mtd and there noteven mtdblockN or mdtN or mtdrN devices to be found in /dev.So : does this work at all or where could be a solution of it ?
Hi there,
While I'm not Sean Lee, you can technically install Linux on WM8850 without scriptcmd ;-)
You'll need root access, and you'll have to write kernel image directly to NAND and then manually overwrite U-Boot configuration in serial flash from Android (to pass a correct command line to your kernel).
Please note though that this way is more risky, as you won't have the option to just remove your SD card and get a known-working system anymore. So, if something goes wrong and you reboot, you can get a brick.
You'll also need to manually apply patches from Tony's repo on Github if you want to access either NAND or serial flash from under a kernel different from WonderMedia's blob. Otherwise you won't be able to update the kernel or cmdline ever after you reboot (unless you use serial console or scriptcmd).
Just one question though. Why doesn't the scriptcmd method suit your needs?
Best,
Alexey
Sean Lee,Can I ask something. I have got WM8850. I want to setup linux but not starting with wmt_scriptcmd and uzImage.bin from fat32. What can I do? Can you help me?
--
2014/1/10 Theodore Kilgore <kil...@banach.math.auburn.edu>: