IRC log for #arm-netbook on 20120422

00:01.03penguin42mnemoc: the problem is without anything saying that you only find out when someone charges you later
00:01.19mnemoctrue
02:06.30*** join/#arm-netbook cromo (~cromo@90-255-251-94.net.stream.pl)
02:15.53*** join/#arm-netbook hp_ (~kvirc@220-136-106-32.dynamic.hinet.net)
02:53.07A0ShedsApple iPad3 screen massive power draw (8Watts?!)
02:53.16A0Shedshttp://pixelqi.com/blog1/2012/04/21/next-generation-pixel-qi-screen-improves-over-ipad3-display/
02:55.27CIA-158rhombus-tech: Shawn master * r73b0a6a2efb7 /allwinner_a10/orders/178259201445.mdwn:
08:20.41CIA-158rhombus-tech: Surendra master * r2d916913cc34 /allwinner_a10/orders/surenreddy.htm:
08:45.48*** join/#arm-netbook eebrah (~Ibrahim_K@212.49.88.64)
09:09.49*** join/#arm-netbook cromo (~cromo@90-255-251-94.net.stream.pl)
09:31.06CIA-158rhombus-tech: lkcl master * rf9ad675ca5aa /allwinner_a10/a10_image.mdwn:
09:35.00CIA-158rhombus-tech: lkcl master * r3ea55cca6f61 /allwinner_a10/a10_image.mdwn:
09:36.08CIA-158rhombus-tech: lkcl master * r4f677ee658a0 /allwinner_a10/a10_image.mdwn:
09:38.12*** join/#arm-netbook MaDMaLKaV (~IceChat9@188.86.253.69)
10:27.30*** join/#arm-netbook gnurbs (~arian@77-58-105-100.dclient.hispeed.ch)
10:49.18lkclA0Sheds: 8 watts???? holy cow
11:08.55cromoany idea why it only reports 313940 kB of memory?
11:08.58cromoshould be 512
11:10.33specingcromo: mine does that too
11:10.58cromomnemoc: would you mind checking yours? I assume you run own kernel
11:11.14cromou-boot says 512 on boot, so it's not hardware
11:14.43specing<PROTECTED>
11:14.43specingMem:        322576       296676        25900            0        11452
11:14.43specing-/+ buffers:             285224        37352
11:14.44specingSwap:            0            0            0
11:18.04cromothat's clearly almost 2/5 missing ;)
11:18.13specingwell...
11:18.18specing32 MB is for the GPU
11:18.26specingWhere the rest went... no clue
11:20.46specingAlso, my tablet is again not booting
11:29.10*** join/#arm-netbook penguin42 (~dg@tu006.demon.co.uk)
12:38.57*** join/#arm-netbook cromo (~cromo@90-255-251-94.net.stream.pl)
12:57.32*** join/#arm-netbook eebrah (~Ibrahim_K@212.49.88.73)
13:03.25zenitraMkexec seems to work with 2.6.36... except kernel parameters.
13:14.20cromoanybody knows if there's a "build_sun4i" script available in linux-allwinner branch?
13:39.29mnemoccromo: yes, same mem here, MemTotal: 316412 kB
13:39.58cromoany idea why?
13:40.03cromoshould be more I think
13:40.58mnemoc[    0.000000] Total Detected Memory: 512MB with 1 banks
13:41.06mnemoc[    0.000000] Memory Reserved:
13:41.06mnemoc[    0.000000]   VE:    0x43000000, 0x04a00000
13:41.06mnemoc[    0.000000]   FB:    0x5a000000, 0x02000000
13:41.06mnemoc[    0.000000]   G2D:   0x58000000, 0x01000000
13:42.46cromohmm
13:43.37zenitraMi think i've got how to fix eth on the evb script.bin
13:43.50zenitraMthe evb is missing a line:
13:43.51cromozenitraM: with working X's?
13:43.51zenitraMemac_power = port:PH15<1><default><default><0>
13:44.09zenitraMi have to try it
13:44.10cromoif you could compile quickly the bin
13:44.25cromoI have a friend that will test it quickly to check both x and eth
13:44.33zenitraMi only need to find where did i put the script compiler
13:44.35cromothe same guy that initially reported X not working
13:45.34zenitraMthe thing is, with the mele .bin
13:45.41zenitraMx works, but hangs after login
13:46.46mnemocwhat driver you use on X? fb?
13:47.03zenitraMi think so. in fact there is no xorg.conf
13:47.53mnemoccromo: by "linux-allwinner branch" you mean certain branch of this repo: https://github.com/amery/linux-allwinner ?
13:48.06cromomnemoc: are the values after the comma? size?
13:48.19zenitraMcromo: https://www.dropbox.com/s/xptsdzelwtm821o/evb_eth.bin
13:48.34mnemoccromo: yes, base comma size
13:48.43zenitraMi was trying to do the opposite, find out why the mele one doesn't work
13:48.49cromocromo: yes
13:48.52cromojeeez
13:48.54cromomnemoc: yes
13:49.24mnemoccromo: the allwinner-*-android branches include the lichee scripts, the linux-* branches don't
13:49.50mnemoccromo: but the linux-* branches only include core functionality not even the mmc or nand drivers
13:49.53cromoso you build uImage manually after compilation?
13:50.01cromoah
13:50.18mnemoci've never used those scripts
13:50.31mnemoci use the normal `make`
13:50.50cromoand to build uImage? mkimage?
13:50.53mnemocmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- CONFIG_DEBUG_SECTION_MISMATCH=y -j32 uImage modules
13:50.59cromoah
13:51.02cromoI get it
13:51.54mnemocand  arch/arm/boot/uImage will be there at the end
13:52.11cromoI thought you need to use the mkimage tool to get the uImage generated
13:52.17mnemocsure
13:52.19cromosince normally make builds bzImage only
13:52.35mnemocthe the uImage target calls uboot helpers for you
13:52.48mnemocs/^the/but/
13:53.07cromonice
13:54.20mnemocremove the CONFIG_DEBUG_SECTION_MISMATCH=y from the paste above
13:54.30mnemocmodules probably too
13:55.19cromowhich branch do you recommend? linux-3.3-sun4i?
13:55.28cromois it stable at all?
13:55.57mnemoconly if you are happy with an initrd based system
13:56.18mnemocI work on allwinner-v3.0-android, trying to fix drivers
13:57.07cromowould rather want kernel only
13:57.21mnemochno used linux-3.3-sun4i to fix some core support, but doesn't include any driver
13:57.29mnemocno mmc, no nand, no fb, ....
13:57.57cromoif there's no mmc, rootfs won't boot, so...
13:58.12mnemocinitramfs will work
13:58.18mnemocbut nothing facier
13:58.21mnemocfancier*
13:58.33cromohmm
13:58.51mnemocallwinner-v3.0-android has working mmc, not nand is not working
13:58.59mnemocsata seems to work, but haven't tested it
13:59.04cromoUSB?
13:59.14mnemocworks fine
13:59.15cromoI want to connect USB cable modem
13:59.19mnemocalso usb-storage
13:59.24mnemocmight work
13:59.28cromowill try it then
13:59.32mnemocbut forget about X for now
14:01.07cromodoes it compile with 4.6?
14:01.11cromogcc that is
14:02.05mnemocyes, I use linaro's gcc
14:03.30mnemoccromo: If you are going to play with that branch, this is the diff of my .config http://dpaste.com/735562/
14:04.08cromowhat does it change compared to the config file in branch? in summary
14:04.32mnemocfinishes compiling :p
14:04.42cromohaha
14:04.53cromoCONFIG_VIDEO_SUN4I_CEDAR
14:04.56cromointeresting
14:05.08mnemocsome drivers are still broken, others still crash your kernel so I made them m temporarily
14:07.10mnemocI wanted to fix the nand driver, but switched to the disp driver as fb seems to have more popular interest ;-)
14:10.41*** join/#arm-netbook mikey_w (~mike@c-71-63-115-202.hsd1.va.comcast.net)
14:11.00*** join/#arm-netbook mike_ (~mike@c-71-63-115-202.hsd1.va.comcast.net)
14:11.47zenitraMmmm the evb one has (obviously) spdif disabled
14:12.13zenitraMaand the system hangs on the mele exactly at the point where the ubuntu startup chime is played
14:12.21mnemocmeh... that's the only sound driver I already ported :<
14:12.41zenitraMthis is with their 3.0.8+..
14:13.04zenitraMi suspect spdif is what is making it really crash
14:13.18zenitraMlet's try to disable alsa..
14:14.28cromoI need to do some more reading on this
14:14.44cromowhy can't we really use the one that is used for android?
14:15.07mnemocwe can
14:15.07cromoor in other words, why does it cause problems with vanilla linux kernel?
14:15.12zenitraMcromo: it crashes after ubuntu X login
14:15.52mnemoccromo: they only implemented and fixed the parts needed to run android
14:16.11mnemoccromo: linux, Xm and full fb was never of interest for allwinner
14:16.34mnemoccromo: the drivers miss several not-optional callbacks
14:16.47mnemoccromo: because android doesn't call them
14:17.11cromoI see
14:17.14mnemocbut linux over the same android kernel does use those callbacks, and crash
14:17.56zenitraMtheir 3.0.8+ seems to have them implemented though... but no sources
14:17.59cromoA10 is great chip
14:18.05cromotoo bad it's not so popular
14:18.28cromoseems perfect for set-top-boxes
14:18.30cromorunning linux
14:19.54cromoso basically only their 3.0.8+ runs X fine?
14:21.21zenitraMso far, it seems so
14:21.21mnemocnot even
14:32.48*** join/#arm-netbook QingPei (~qingpei@114.241.176.76)
14:39.05cromomnemoc: USB serial is not enabled in your config, do you use serial<>USB converter for serial console debugging?
14:39.57mnemoccromo: the dongle is connected via usb to another machine
14:40.45mnemoccromo: but if you want to connect a dongle to the mele you can enable it on your builds too
14:41.13cromoI need to get some more sleep
14:41.16cromo:o
14:41.24mnemoc:)
14:41.31cromoof course it is connected to another machine
14:41.37cromosometimes I amuse myself
14:41.45mnemoc^^
14:49.13zenitraMi'm trying to isolate what on the mele .bin is making things go kaboom
14:49.19zenitraMso far i've got this: http://pastie.org/3833914
14:49.32zenitraMmele_spdif crashes, evb doesn't
14:49.40mnemoczenitraM: please, diff -u
14:50.10zenitraMsorry :) http://pastie.org/3833920
14:51.07mnemocchanges on `uart_used = 0` sections shouldn't matter
14:51.36zenitraMyup.. but there isn't much left
14:51.59mnemocemac_power = port:PH15<1><default><default><0> seems important
14:52.45mnemocand +usb_host_init_state = 1
14:52.57cromo<PROTECTED>
14:53.07zenitraMemac_power is *not* on the evb one
14:53.12cromoit should be OK to enable it by default in repository
14:53.24mnemoczenitraM: uhm
14:53.27zenitraMthat would explain ethernet not working
14:53.58mnemoccromo: do you have github account?
14:54.05cromonot yet
14:54.28cromoall the programming I do I do only for my closed-source employer ;)
14:54.33zenitraMwill try removing that one. maybe the reason X11 crashes is... well, ethernet working and network-manager doing something nasty
14:55.26mnemoccromo: time to make a change on your life
14:56.04cromoI think about it each day, trust me ;)
14:56.25mnemoccromo: doing closed programming for your money provider doesn't mean you can't make your own code open
14:56.36cromotime's the issue
14:57.42cromoanyways, I don't get why do I get "Restart config..." each time I make
14:57.59cromoI did make menuconfig and saved, so I assume no more configuration should be needed
14:58.25mnemocyou can edit .config manually
14:58.34mnemocand consistency needs to be reviewed, each time
14:58.53cromoI'm confused
14:59.19cromohaven't compiled kernel for years now probably, but AFAIR it was enough to do make menuconfig and make
14:59.39mnemoccromo: first, this isn't not native
15:00.18cromoit asks me some arm questions I don't know and don't want to ask
15:00.27mnemocso every time you say `make` think: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
15:00.31cromosure
15:00.38cromoI do that
15:00.51mnemocthe first thing is a defconfig, sun4i_defconfig in our case
15:01.09mnemocthen, every time you edit .config, oldconfig
15:01.38mnemocand then, uImage and modules
15:01.59mnemocwith a good -j obviusly
15:02.24mnemocI use 2 times the number of cores of the machine
15:03.00cromoI still don't understand why am I being asked the configuration questions when doing make
15:03.17mnemocthat happens when your .config is incomplete
15:03.38cromoAFIR running make menuconfig and saving should deal with it
15:04.28mnemochaven't used menuconfig is years
15:04.36mnemocin*
15:04.46mnemocI suppose it should
15:04.51mnemocoldconfig is faster
15:04.53cromoyeah
15:04.57cromoI went back to README
15:05.05zenitraMokay, even more isolation. http://pastie.org/3834005
15:05.07cromoquite a lot has changed
15:05.33mnemocoldconfig is older than menuconfig...
15:05.55cromobut silentoldconfig
15:06.04cromoallyesconfig, etc.
15:06.08cromodon't remember that
15:06.14mnemocthose are for distros
15:06.22mnemocto include in their build systems
15:06.27mnemocnot for human usage
15:06.40cromosee
15:07.03mnemoczenitraM: do you have the .fex posted by Tom with all documentation (in chinese) etc?
15:07.36mnemoczenitraM: still no ethernet on Tom's .fex+fixes ?
15:07.54zenitraMhaven't tested yet.. but i think there is something else wrong
15:08.09mnemocdon't be greedy, test one change at the time
15:08.17zenitraM<PROTECTED>
15:08.17zenitraM9c184caa59eb3deaa275a721cb0b16b5  /home/zenitram/Descargas/sys_config1.evb.bin
15:08.17zenitraMc79d30d3dac04220ac51b85268d8b4f2  sys_config1.evb.bin
15:08.43zenitraMthe .bin tom posted (same as on evb.bin)
15:08.50zenitraMdoesn't match the .fex compiled to .bin
15:09.09mnemocuhm
15:09.14zenitraMand
15:09.26zenitraMit also doesn't match evb.bin decompiled to fex and compiled back again
15:10.07zenitraMwhich makes me think they're using another version of the script tool which adds something different at the overhead at the end
15:10.55mnemoctried with the compiler for windows?
15:11.05mnemocthere are some versioning fields in the header
15:11.13zenitraMno windows at hand
15:11.23zenitraMgoing to try binary-diffing both .bin
15:12.19mnemocit is possible that the windows compiler translates some of the "default" to a known default value, a 0 or a 1 for example
15:12.28mnemocwhile the dumber compiler passes the default as is
15:15.36mikey_wI'e dd(ed) the 2 GB image to a 4GB sd card several times.  The first partition on the card will mount but not the rootfs partition?
15:16.03mnemocfsck it first
15:16.10mikey_wAlso there is no u-boot in the first partition.  Is the image a joke or what?
15:16.11mnemocand check you have ext4 support
15:16.38mnemocu-boot in injected in the first M, before the partitions
15:16.54mnemocMBRish
15:17.11mikey_wWhat the heck does that mean, either it's a good image or it's not.
15:17.42mnemocif works for others, it's a good image
15:18.02vgrademikey_w, works here
15:18.06mikey_wI am confused or spoiled by my beagleboard's image files.
15:18.27mnemoc2GB image.... iirc the image is 4GB *compressed* as 2GB
15:18.55mikey_wWhat is equivalent to MLO and u-boot.bin etc.?
15:19.11mnemocmikey_w: not visible
15:19.37mikey_wWhat is the exact boot process from power on to linux running?
15:19.43mnemocmikey_w: for A10 devices that doesn't go on a partition
15:19.52mnemocmikey_w: it's documented in the wiki
15:20.05mikey_wURL please?
15:20.06vgradethere is a uboot binary written after the partition table on the sdcard
15:20.19vgradebefore the first fat part
15:20.37mikey_wActually that's rater cool.
15:20.44mnemocmikey_w: http://rhombus-tech.net//allwinner_a10/a10_mmc_boot/
15:20.45mikey_wrather
15:21.13mikey_wMakes sense now.  Thank you.
15:21.19mnemocsudo dd if=u-boot-spl-mmc.bin of=/dev/sdb bs=1024 seek=8
15:21.23mnemocsudo dd if=u-boot.bin of=/dev/sdb bs=1024 seek=32
15:22.10mnemocand http://rhombus-tech.net//allwinner_a10/a10_boot_process/
15:25.51mikey_wSo why doesn't the image just image the mbr so u-boot is automatically dd(ed)?
15:26.11mikey_wOr is it?
15:26.30zenitraMit is
15:27.19mikey_wSo the dd of u-boot.bin to the sd card as a separate entity is not actually needed, it's already there?
15:27.37mikey_wJust invisible.
15:27.39vgradecorrect
15:28.19mnemocscratches his head..... didn't I said that 10m ago? :(
15:28.36mikey_wI just ordered my A1000 so I have a bit of time to wait before I can try all of this.  Just trying to line up my ducks.
15:28.51mikey_wTU
15:33.34mnemocyw
15:33.50mikey_wwhen I attempt to fsck I get "fsck.ext4: No such file or directory while trying to open /dev/sdb2
15:33.51mikey_wPossibly non-existent device?".
15:34.21mikey_wbrb
15:34.34mnemocwhat `fdisk -l /dev/sdb` tells you?
15:38.26mikey_wMy bad it's sdc.
15:38.37mnemoc:)
15:42.54mikey_weven after running fsck the partition will not mount?
15:43.07mnemoccheck dmesg
15:44.17mikey_wEXT4-fs (sdc2): bad geometry: block count 974336 exceeds size of device (962304 blocks)
15:45.19mnemoccorrect the partition table and fsck.ext4 again
15:45.30mikey_wok
15:45.36mnemoc.... distributing raw images is a baaaaaaaad idea
15:47.48mikey_wNo joy will start over and hope for a better result.
15:48.39mnemocit's done in the name of user friendliness, but ends up been far more complex than constructing your own image
15:49.15mikey_wI actually dd(ed) the 2nd partition and copied it to another card after imaging it so that should work.  It mounts.
15:51.15mikey_wThe fs look good and the first partion contains: evb.bin  LOST.DIR  mele.bin  sys_config1.mele_mod.bin  uImage.
15:51.39mikey_wHave to wait for my unit to try it.
15:52.20mikey_wThis whole exercise has been instructional.
15:52.37mnemochow is your kernel-fu?
15:52.52mikey_wfu?
15:53.19mnemocdo you know C and some kernel programming?
15:53.38mnemocthere are still a bunch of drivers in the 3.0 tree that need to be ported
15:53.47mnemocand no need of a device for that
15:54.00mikey_wyes started with first slackware release where a real man made his own drivers.
15:54.50mnemochttps://github.com/amery/linux-allwinner :)
15:55.04mikey_wARM compiling is limited but I hae done some ARM assembly stuff.
15:55.22mnemocallwinner-v3.0-android branch :)
15:55.22mikey_whave
15:55.48mikey_wSomething to wile away the time.:)
15:56.03mikey_wlol
15:56.10mnemocdive in ;-)
15:56.24mikey_wMaybe.
15:56.36cromomnemoc: which drivers are these?
15:57.20mnemochdmi and i2s sound, and v4l2
15:57.35mikey_wSo now I hae a race going on as to whether my A1000, my raspberry pi on my openpandora paid for in April, 2009 will arrive first.
15:58.18mnemoccromo: I ported the spdif sound driver, should be good a example.... but haven't tested in in runtime
15:58.33mnemoccromo: I provably screwed up the references in the codec link
15:58.39mnemocprobably*
15:58.58mikey_wlater
15:59.38mnemocdisp (fb) drivers builds but it's awfully incomplete, and nand builds but doesn't find sh*t
16:00.39mnemocI'm trying to understand the disp driver to extend it... all the rest needs volunteers
16:03.52*** part/#arm-netbook QingPei (~qingpei@114.241.176.76)
16:21.17CIA-158rhombus-tech: Cristian master * radbf15710739 /allwinner_a10/orders/.mdwn:
16:21.26cromomnemoc: my confusion about all the oldconfig/menuconfig/config was because I was not using make ARCH=arm menuconfig/oldconfig/config, so it would assume my system's default x86_64
16:21.42mnemocright
16:22.06mnemocthat's why the very first step is man ARCH=arm sun4i_defconfig
16:22.12mnemocs/man/make/
16:22.34cromohah, funny bot
16:22.38cromonever seen such
16:22.49cromoalthough I don't spend too much time on IRC
16:24.07cromoanyone knows if mac802 driver for the realtek chip in mele is usable?
16:24.13cromoand if it does support AP mode?
16:24.17CIA-158rhombus-tech: Cristian master * r3d1736dc8ed7 /allwinner_a10/orders/ZeroOneCris1991.mdwn:
16:26.28mnemoccromo: doesn't see it, only the customized driver (drivers/net/wireless/rtl8192cu/8192cu.ko) from allwinner's 2.6.36 tree detects the chip in my 3.0.28+ installation
16:27.10mnemocdrivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko doesn't even try to initialize anything
16:41.51cromohmm
16:42.12cromohow come? it's not even in staging, so it should work I think
16:42.30mnemocyou are very welcomed to find why the stock driver doesn't see the chip in the mele :)
16:42.38cromoI'll try
16:44.43cromobut now I can't even finish compiling the kernel
16:45.18cromodrivers/net/sun4i/sun4i_wemac.c:1876:6: error: ‘struct net_device’ has no member named ‘poll_controller’
16:45.29cromogcc 4.5
16:45.49mnemoco_O
16:46.45mnemocgcc version has nothing to do on that
16:46.59cromoyeah, gcc 4.6 failed too
16:47.06mnemocwhat remote/branch and how exactly did you configure it?
16:47.20cromojust a sec
16:47.25cromoI am trying with default .config
16:47.41cromo(I did some tweaks that shouldn't really matter)
16:47.48cromo(but still)
16:48.25mnemochttp://dpaste.com/735637/
16:48.56cromohah
16:48.59cromosame error
16:49.12mnemocmake distclean
16:49.22mnemocmake ... sun4i_defconfig
16:49.27cromodid
16:49.30mnemocmake ... uImage
16:49.35mnemocno tweakings
16:49.37cromoI didn't do distclean though
16:50.48penguin42remember to always include the ARCH=arm on every make; otherwise stuff gets rather confused
16:51.00cromosure, I know
16:51.13cromoI am a programmer myself, too, just didn't touch kernel for a while ;)
16:51.26cromoand C in general
16:51.32mnemoccromo: paste the whole thing, starting when you call sun4i_defconfig until you call uImage
16:51.47cromojust a sec, it's compiling now
16:51.57cromocould be that I didn't do distclean after some other tries
16:52.24cromosound/soc/sun4i/hdmiaudio/sun4i-hdmiaudio.c:653:2: error: too few arguments to function ‘snd_soc_register_dai’
16:52.26penguin42yeh the kernel make system takes a bit of getting used to - like most large projects they have their own quirks
16:52.31cromosame thing
16:52.44penguin42oh, well that just looks like a plane old bug/mismatch
16:52.48cromomake ARCH=arm sun4i_defconfig
16:53.03cromomake ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j32 uImage modules V=99
16:53.36cromogit branch: allwinner-v3.0-android
16:53.45penguin42cromo: I find it useful to drop the -j32 when you're trying to figure out what's gone wrong - that way the error will always be the last thing
16:53.58cromothx
16:54.07cromoI was wondering why does it continue ;)
16:54.34penguin42-j32 is run 32 compiles in parallel - you might want to back it off if your build machine isn't as chunky as mnemoc's
16:54.35mnemocyou had another 31 workers finishing their taks :)
16:54.42cromoyeah
16:55.22mnemocin general pick a -j between the numbers of cores and the double of it
16:55.46cromobuild.sh script sets it to no of cores in system
16:55.48penguin42wants mnemoc's 16 core box
16:55.48mnemocbut when hunting an error, drop -j
16:55.58specingOnly 16?
16:56.18cromocore 2 duo here only :/
16:56.20specingWait till you get one of those 100-core CPUs from tilera
16:56.22cromobut waiting for new intel
16:56.38mnemochttp://www.hetzner.de/en/hosting/produktmatrix/rootserver-produktmatrix-ex has some nice deals :)
16:57.59cromohttp://pastebin.com/GNRrY8z9
16:58.01cromosame error
16:58.08cromojust cleaner output
16:58.46mnemocnot same error
16:58.54mnemocthat driver is known to be broken
16:59.05cromoindeed, not same error
16:59.20cromoI am hangovered today, things are a little blurry
16:59.23mnemocapply this http://dpaste.com/735644/
16:59.31mnemocto get a safer defconfig
16:59.48cromoI did when you said, now I remember I did git clean
16:59.59cromoso it got reverted
17:00.16mnemocsave the .diff :)
17:00.21mnemocor... commit it
17:00.27mnemocbut don't push
17:00.42mnemocbecause it's a temporal hack
17:00.50mnemocto have less noisy builds
17:03.13cromohad it saved, too, but again, git clean removed it anyway ;)
17:13.31cromoany reason for these USB mass storage readers to be configured as compiled into kernel?
17:15.03mnemocI enabled none myself... so they come from the original defconfig from allwinner
17:15.04cromoit's probably from allwinners
17:54.22cromodrivers/net/sun4i/sun4i_wemac.c:1876:6: error: ‘struct net_device’ has no member named ‘poll_controller’
17:57.12mnemocvery odd
17:57.21cromowill try again
17:57.25mnemocwhen what config setting enables poll_controller
17:57.30mnemocs/when/check/
17:57.32cromomaybe I mised something
17:57.58mnemoclook for the definition of the struct
17:58.19mnemocthe field has to be in an #ifdef #endif block
17:58.33mnemocand for some reason that's false for you
18:15.12cromoit was because I enabled netconsole
18:27.34*** join/#arm-netbook vgrade2 (~martinbro@cpc2-nrte22-2-0-cust128.8-4.cable.virginmedia.com)
18:34.42CIA-158rhombus-tech: nibble master * rd99af5834295 /allwinner_a10/a10_image.mdwn: Replaced option "skip" for "seek" in dd uboot command
18:35.30mnemoccromo: it would be good to add the corresponding #ifdef / #endif in drivers/net/sun4i/sun4i_wemac.c to support the case when someone enables netconsole and insist he hasn't changed the defconfig :p
18:38.04*** join/#arm-netbook cromo (~cromo@90-255-251-94.net.stream.pl)
18:52.19mikey_wWhat does the the mele A1000 use instead of MLO during boot if anything?
18:53.02mnemoc17:30:05 < mnemoc> and http://rhombus-tech.net//allwinner_a10/a10_boot_process/
19:39.30vgrade2ok, \o/, X up on stock allwinner 2.6.36-andriod
19:39.50vgrade2well stock plus a hack to fix the framebuffer driver
19:42.15mnemocvgrade2: would you share that hack with me?
19:43.13vgrade2absolutly
19:43.54vgrade2usb host is fkd though so no keyboard or mouse, but progress
19:48.49vgrade2sec for patch
19:52.44mnemocvgrade2: do you have github account?
19:53.06vgrade2http://pastie.org/3835332
19:53.16vgrade2yes
19:53.26vgrade2sec for user
19:53.33mnemocouch
19:53.49vgrade2martinbrook
19:54.00vgrade2told you it was a hack
19:54.07mnemocsomehow that hack looks far uglier than.... expected
19:55.46*** join/#arm-netbook ARE-TEE (~leebradbu@cpc20-stok15-2-0-cust539.1-4.cable.virginmedia.com)
19:56.46mnemocvgrade2: I'm trying to fix fbcon support currently... do you have a log of the crash you were having with X that motivated this nice patch? :)
19:57.13vgrade2same as zenitraM from yesterday
19:57.16vgrade2sec
19:57.46vgrade2http://pastie.org/3830099
19:58.52vgrade2fbcon is currently good enough to boot to ubuntu login manager
19:59.23mnemoco_O
19:59.25zenitraMfbcon = framebuffer console != framebuffer
19:59.41zenitraMFBIOPUTCMAP = put character map?
19:59.56vgrade2colourmap
20:00.11mnemochow comes you can get fbcon while it relies in .fb_imageblit which is not implemented at all?
20:01.16vgrade2sry, disp driver is good enough to boot to ubuntu login manager
20:01.25mnemocstill your crash is within DE_BE_Set_SystemPalette so it will also strike me soon
20:01.47vgrade2I'm guessing thats never called from andriod
20:02.01mnemocright
20:03.05mnemocDE_BE_Set_SystemPalette+0x28 is drivers/video/sun4i/disp/de_bsp/de/ebios/de_be.c:347
20:03.15mnemocall very nasty in there
20:03.23mnemocalso full of blobs
20:05.28mnemocvgrade2: have you noticed any side effect of your hack yet?
20:05.58vgrade2nope colours look ok on login screen
20:06.24vgrade2need to get usb host working so I can get a mouse and keyboard
20:06.35*** join/#arm-netbook cromo (~cromo@90-255-251-94.net.stream.pl)
20:06.43vgrade2has there been any work done on usb host ?
20:06.50mnemocodd, my 3.0 detects my usb keyboard just fine
20:07.22mnemocbut haven't had the chance to type on it yet as I don't have a console or X yet
20:07.55mnemocvgrade2: using a hub or something fancy?
20:08.44vgrade2nope,
20:09.10mnemocand still no reaction on dmesh when you plug it?
20:10.33vgrade2I have hub 1-0:1.0: cannot reset port 1 (err = -32)
20:10.37vgrade2in boot log
20:10.43vgrade2let me try again
20:10.59mnemocApr 22 20:10:43 localhost kernel: [  695.320000] usb 1-1.2: new low speed USB device number 4 using sw-ehci
20:11.02mnemocApr 22 20:10:44 localhost kernel: [  695.860000] input:   USB Keyboard as /devices/platform/sw-ehci.1/usb1/1-1/1-1.2/1-1.2:1.0/input/input6
20:11.06mnemocApr 22 20:10:44 localhost kernel: [  695.960000] generic-usb 0003:04D9:1603.0003: input: USB HID v1.10 Keyboard [  USB Keyboard] on usb-sw-ehci-1.2/input0
20:11.34zenitraMvgrade2: are you using the evb script.bin?
20:11.34mnemocand I haven't done anything special after moving the driver from 2.6.36
20:11.36zenitraMevb.bin
20:11.39zenitraM(well the default one)
20:11.40zenitraMif so
20:11.48zenitraMplug the kb/mouse to another port
20:11.55zenitraMthe evb has a port configured differently
20:12.03mnemocuh
20:12.29zenitraMand the config for that port doesn't match the port, so it complains about it even if nothing is connected
20:12.49mnemoczenitraM: got the .fex fixed yet? :)
20:13.11zenitraMnot yet. all those cold-reboots somehow messed my root partition and now it doesn't boot anything
20:13.23mnemocnarf
20:13.38zenitraMbut all that was left was... the gpio ports and not much more
20:13.41vgrade2zenitraM, I'm still on the .bin which cam with the ubuntu iamge
20:13.50zenitraMvgrade2: that is the evb one
20:13.52zenitraMuse another port
20:14.09vgrade2or use the script.bin renamed to evb.bin
20:14.42zenitraMX will hang after login on that one
20:15.48vgrade2zenitraM, nothing on any port
20:15.48zenitraMfor still unknown reasons
20:16.17vgrade2zenitraM, how did you get X up?
20:16.22zenitraMmmm then it might be a 2.6.36 issue
20:16.32zenitraMcouldn't get it up on 2.6.36
20:17.00zenitraMonly on the 3.0.8+, and was investigating why it works on the evb .bin but not on the .bin used by the mele
20:17.20vgrade2ok,
20:17.56vgrade2I'll give the script.bin a go now I have X up on stock 2.6.36
20:18.23vgrade2mnemoc, do you have a .config for your 3.0
20:21.54CIA-158rhombus-tech: Andreas master * r647ee5561cd6 /allwinner_a10/orders/lonelycoder.mdwn:
20:22.14mnemocvgrade2: apply http://dpaste.com/735714/ to turn sun4i_defconfig is one that finishes fine
20:22.41mnemocit disables broken drivers
20:23.05mnemocand turns problematic into modules for better debugging
20:23.47mnemocvgrade2: it's the allwinner-3.0-android branch
20:25.12cromomnemoc: I managed to compile and allwinner-3.0 branch
20:25.14mnemoczenitraM: vgrade2 "fixed" 2.6.36 with http://pastie.org/3835332
20:25.28cromohowever it appears _much_ slower than allwinner's 3.0.8?
20:25.31cromois this expected?
20:25.47mnemocno idea, I've never used allwinner's 3.0.8
20:26.15cromologging in with ssh takes 2 secs now, it was almost immediate before
20:26.21zenitraMmnemoc: i know, and that doesn't seem like an ideal patch, but oh well
20:26.33mnemoccromo: it can also be about the governor.... ondemand likes to set mine to 60Mhz
20:28.12cromoCONFIG_CPU_FREQ_GOV_ONDEMAND=y
20:28.34mnemoctry interactive
20:29.04mnemoc60Mhz ain't sexy
20:30.30cromointeractive didn't help
20:30.37cromoecho 1008000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq did
20:30.44cromoso it's def governor's fault
20:31.31cromoseems fantasy did the trick
20:31.46mnemocnow that I'm clonning the git repo to the SD *cough* ondemand was kind enough to set it to 1008000 too
20:33.29cromowhich of the governors should be able to scale to max frequency quickiest?
20:33.43mnemoci'm analphabet there
20:33.43cromoAFIK interactive is the one
20:34.22vgrade2zenitraM, mnemoc, I agree its fugly
20:35.28mnemocvgrade2: if it doesn't have obvius side effects and lets people work on fixing other problems in the meantime, it's perfect :)
20:36.15vgrade2I'll let you know if I see anything wrong once I get a mouse/kbd
20:36.33vgrade2still no usb host with script.bin
20:37.07vgrade2does the stock andriod have /proc/config.gz
20:41.37mnemocvgrade2: no
20:42.31mnemocmeh, I run out of candles :(
20:42.59vgrade2mnemoc, thanks

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.