Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 55

Thread: Ubuntu and the asus zenbook (UX302)

  1. #41
    Join Date
    Mar 2014
    Beans
    13

    Re: Ubuntu and the asus zenbook (UX302)

    Quote Originally Posted by bug-track View Post
    Good news for every one who has UX302 or linux laptop with Alcor Micro AU6601 SD controller. It's Alive!!!!

    After some time of RE, i was able to reconstruct registers important for data transfer and make initial linux driver.
    Quote Originally Posted by motley-slate View Post
    Great work, thanks! I assume these are your changes here? http://www.spinics.net/lists/linux-mmc/msg25836.html
    I will merge with the testing kernel I build above and give it a try. Is there a git repo I can track for changes?
    Update: your patch is working fine on 3.15 rc2. The only thing I had to change in the patch for 3.15 rc2 was the variable cmd_timeout_ms is now busy_timeout in struct mmc_command in core.h. So, I just renamed the variable in two places in au6601_send_cmd{} within au6601.c.

    Speeds are limited as you had explained in your patch, but it is very nice to have the sd card working nonetheless. Again, great work my friend!

    P.S. I am seeing these in the kernel log. Are you seeing the same thing on 3.14? The sd card mounts fine and is working from userland (Toshiba 8GB SDHC class 4)
    Code:
    [    1.008093] BUS width 1 [    1.008102] time 0. set freq 150000, c8, 0
    [    1.008113] BUG: scheduling while atomic: kworker/u8:5/89/0x00000002
    [    1.008192] Modules linked in: atkbd libps2 ahci libahci libata xhci_hcd scsi_mod au6601 usbcore usb_common i8042 serio sdhci_acpi sdhci mmc_core
    [    1.008218] CPU: 1 PID: 89 Comm: kworker/u8:5 Tainted: G        W     3.15.0-rc3-mainline-motley #1
    [    1.008222] Hardware name: ASUSTeK COMPUTER INC. UX302LA/UX302LA, BIOS UX302LA.204 09/03/2013
    [    1.008235] Workqueue: kmmcd mmc_rescan [mmc_core]
    [    1.008238]  ffff88011ee93100 ffff880037f01b18 ffffffff814a6178 ffff880037f01c60
    [    1.008245]  ffff880037f01b28 ffffffff814a3180 ffff880037f01c30 ffffffff814a8728
    [    1.008250]  ffff880037ef9aa0 ffff880037f01fd8 0000000000013100 0000000000013100
    [    1.008256] Call Trace:
    [    1.008272]  [<ffffffff814a6178>] dump_stack+0x4d/0x6f
    [    1.008279]  [<ffffffff814a3180>] __schedule_bug+0x47/0x55
    [    1.008287]  [<ffffffff814a8728>] __schedule+0x768/0x7a0
    [    1.008297]  [<ffffffff81099285>] ? log_store+0x165/0x1f0
    [    1.008304]  [<ffffffff8108e99d>] ? up+0x2d/0x50
    [    1.008311]  [<ffffffff814a8784>] schedule+0x24/0x70
    [    1.008319]  [<ffffffff814a7bf6>] schedule_timeout+0x116/0x1a0
    [    1.008331]  [<ffffffff8105bc60>] ? migrate_timer_list+0x60/0x60
    [    1.008336]  [<ffffffff8105c8df>] msleep+0x2f/0x40
    [    1.008343]  [<ffffffffa00ab05e>] au6601_set_power+0x5e/0x80 [au6601]
    [    1.008349]  [<ffffffffa00ab373>] au6601_sdc_set_ios+0x253/0x3f0 [au6601]
    [    1.008359]  [<ffffffffa0002455>] mmc_set_chip_select+0x35/0xb0 [mmc_core]
    [    1.008370]  [<ffffffff8125f9ca>] ? __delay+0xa/0x10
    [    1.008381]  [<ffffffffa000774f>] mmc_go_idle+0x6f/0xc0 [mmc_core]
    [    1.008390]  [<ffffffffa00035dd>] mmc_rescan+0x23d/0x2e0 [mmc_core]
    [    1.008398]  [<ffffffff810683ed>] process_one_work+0x13d/0x390
    [    1.008404]  [<ffffffff81068d39>] worker_thread+0x119/0x3a0
    [    1.008409]  [<ffffffff81068c20>] ? manage_workers.isra.26+0x2a0/0x2a0
    [    1.008417]  [<ffffffff8106eecd>] kthread+0xcd/0xf0
    [    1.008424]  [<ffffffff8106ee00>] ? kthread_create_on_node+0x180/0x180
    [    1.008433]  [<ffffffff814b0fcc>] ret_from_fork+0x7c/0xb0
    [    1.008440]  [<ffffffff8106ee00>] ? kthread_create_on_node+0x180/0x180
    Last edited by motley-slate; April 30th, 2014 at 03:06 AM.

  2. #42
    Join Date
    Apr 2014
    Beans
    4

    Re: Ubuntu and the asus zenbook (UX302)

    Hello motley
    Sorry for my newbie level, but how do you put your patch ? (I found it here https://bitbucket.org/motley/kernel_asus_ux302/src )
    Thanks

  3. #43
    Join Date
    May 2014
    Beans
    1

    Re: Ubuntu and the asus zenbook (UX302)

    Hello!

    Sorry, but I am still not sure how to install Ubuntu at all.
    Searched the forums, but I found no clear explaination /instruction.
    So, as most of you here own this Ultrabook, do you know a kind
    of quick installation tutorial? What troubles me is that ubuntu (14.04 and 14.10) does not
    offe me an option to install ubuntu alongstide windows 8 and many
    wrothe, that the ultrabook doesnt recognize ubuntu after the installation.

    Hope you can help me. Thank you!

  4. #44
    Join Date
    Feb 2014
    Beans
    16

    Re: Ubuntu and the asus zenbook (UX302)

    Hm... for some reasons i don't get notification from this forum. Just accidentally visited it.

    If you use RFC version, then it's time to update. Here is latest version http://www.spinics.net/lists/linux-mmc/msg26292.html
    Suddenly i didn't got any response from MMC devs. Don't know if there all so busy or afraid of the word "reverse engineering".

  5. #45
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Ubuntu and the asus zenbook (UX302)

    Quote Originally Posted by bug-track View Post
    Hm... for some reasons i don't get notification from this forum. Just accidentally visited it.
    Top right forums page > Settings > General Settings > Message & Notification item.
    Attached Images Attached Images
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests by PM, thanks |

  6. #46
    Join Date
    Feb 2014
    Beans
    16

    Re: Ubuntu and the asus zenbook (UX302)

    Thx. It works.

  7. #47
    Join Date
    Mar 2014
    Beans
    13

    Re: Ubuntu and the asus zenbook (UX302)

    Quote Originally Posted by bug-track View Post
    Hm... for some reasons i don't get notification from this forum. Just accidentally visited it.

    If you use RFC version, then it's time to update. Here is latest version http://www.spinics.net/lists/linux-mmc/msg26292.html
    Suddenly i didn't got any response from MMC devs. Don't know if there all so busy or afraid of the word "reverse engineering".
    Nice work, thanks! I am using the latest version with 3.15 rc6 and the speeds are now as expected.

    I am still getting the following mmc rescan kernel messages and am wondering if you see them as well. Any idea to what is causing them?
    Code:
    [  135.804767] CPU: 0 PID: 80 Comm: kworker/u8:3 Tainted: G        W  O  3.15.0-rc6-mainline-motley #1[  135.804771] Hardware name: ASUSTeK COMPUTER INC. UX302LA/UX302LA, BIOS UX302LA.204 09/03/2013
    [  135.804790] Workqueue: kmmcd mmc_rescan [mmc_core]
    [  135.804794]  ffff88011ee13480 ffff8801192c5a48 ffffffff814b7674 0000000000000000
    [  135.804800]  ffff8801192c5a58 ffffffff81079f09 ffff8801192c5b60 ffffffff814b918d
    [  135.804805]  ffff88011906d8c0 0000000000013480 ffff8801192c5fd8 0000000000013480
    [  135.804811] Call Trace:
    [  135.804825]  [<ffffffff814b7674>] dump_stack+0x4d/0x6f
    [  135.804836]  [<ffffffff81079f09>] __schedule_bug+0x49/0x60
    [  135.804842]  [<ffffffff814b918d>] __schedule+0x5dd/0x7c0
    [  135.804847]  [<ffffffff814b9394>] ? schedule+0x24/0x70
    [  135.804853]  [<ffffffff814b8801>] ? schedule_timeout+0x151/0x1b0
    [  135.804857]  [<ffffffff814b9394>] ? schedule+0x24/0x70
    [  135.804862]  [<ffffffff814b8801>] ? schedule_timeout+0x151/0x1b0
    [  135.804867]  [<ffffffff814b9394>] schedule+0x24/0x70
    [  135.804872]  [<ffffffff814b87c6>] schedule_timeout+0x116/0x1b0
    [  135.804878]  [<ffffffff8105eee0>] ? migrate_timer_list+0x60/0x60
    [  135.804885]  [<ffffffff8107ebc0>] ? wake_up_process+0x40/0x40
    [  135.804891]  [<ffffffff8105f8df>] msleep+0x2f/0x40
    [  135.804908]  [<ffffffffa0144370>] au6601_set_power.isra.6+0x90/0xb0 [au6601]
    [  135.804923]  [<ffffffffa01454da>] au6601_sdc_set_ios+0x1ea/0x475 [au6601]
    [  135.804942]  [<ffffffffa00025b5>] mmc_set_chip_select+0x35/0xb0 [mmc_core]
    [  135.804949]  [<ffffffff8126d73a>] ? __delay+0xa/0x10
    [  135.804968]  [<ffffffffa0007aff>] mmc_go_idle+0x6f/0xc0 [mmc_core]
    [  135.804988]  [<ffffffffa00087a8>] mmc_sd_get_cid+0x38/0x210 [mmc_core]
    [  135.805006]  [<ffffffffa000909a>] mmc_sd_init_card+0x4a/0x790 [mmc_core]
    [  135.805029]  [<ffffffffa0009a57>] mmc_attach_sd+0x87/0x170 [mmc_core]
    [  135.805052]  [<ffffffffa0003810>] mmc_rescan+0x270/0x2d0 [mmc_core]
    [  135.805059]  [<ffffffff8106bd62>] process_one_work+0x142/0x3b0
    [  135.805065]  [<ffffffff8106c6fd>] worker_thread+0x12d/0x3d0
    [  135.805071]  [<ffffffff8106c5d0>] ? manage_workers.isra.26+0x2c0/0x2c0
    [  135.805078]  [<ffffffff810727d6>] kthread+0xd6/0xf0
    [  135.805086]  [<ffffffff81072700>] ? kthread_create_on_node+0x180/0x180
    [  135.805092]  [<ffffffff814c218c>] ret_from_fork+0x7c/0xb0
    [  135.805099]  [<ffffffff81072700>] ? kthread_create_on_node+0x180/0x180
    [  136.087579] mmc0: host does not support reading read-only switch. assuming write-enable.
    [  136.092156] BUG: scheduling while atomic: kworker/u8:3/80/0x00000002
    [  136.092164] Modules linked in: vboxdrv(O) fuse bnep nls_cp437 vfat fat arc4 cdc_ether usbnet uvcvideo videobuf2_vmalloc ecb videobuf2_memops videobuf2_core btusb videodev r8152 media mii bluetooth joydev intel_rapl mousedev x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel iwlmvm kvm mac80211 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel asus_nb_wmi ip6t_REJECT iTCO_wdt aes_x86_64 asus_wmi lrw sparse_keymap iTCO_vendor_support gf128mul glue_helper iwlwifi ablk_helper cryptd cfg80211 xt_hl pcspkr microcode mei_me i915 evdev ip6t_rt i2c_i801 mei rfkill psmouse snd_hda_codec_realtek snd_hda_codec_generic shpchp serio_raw thermal wmi lpc_ich snd_hda_intel i2c_algo_bit nf_conntrack_ipv6 snd_hda_controller nf_defrag_ipv6 tpm_tis drm_kms_helper tpm dw_dmac snd_hda_codec
    [  136.092263]  battery video dw_dmac_core snd_hwdep ipt_REJECT drm snd_pcm 8250_dw i2c_hid xt_comment intel_gtt spi_pxa2xx_platform xt_LOG snd_timer ac i2c_core snd soundcore processor button xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables ext4 crc16 mbcache jbd2 hid_generic hid_multitouch sd_mod crc_t10dif crct10dif_common hid_logitech_dj usbhid hid atkbd libps2 ahci libahci au6601 libata xhci_hcd scsi_mod usbcore usb_common i8042 serio sdhci_acpi sdhci mmc_core

  8. #48
    Join Date
    Feb 2014
    Beans
    16

    Re: Ubuntu and the asus zenbook (UX302)

    You can try to remove or reduce msleep() insight of au6601_set_power().

  9. #49
    Join Date
    Mar 2014
    Beans
    13

    Re: Ubuntu and the asus zenbook (UX302)

    Quote Originally Posted by bug-track View Post
    You can try to remove or reduce msleep() insight of au6601_set_power().
    Thanks, I'll play around with that when I get a chance. If au6601_set_power is called periodically after init, perhaps I will make a module parameter so I can adjust the sleep time to see what works best. Would that be worth a try?

    I have to say, after the kinks have been worked out, this is quite a nice little machine for Linux. I just ordered a 120GB mSATA and the 8GB DDR3L, so I am likely looking at a rebuild next week. Windows 8 will be removed completely this time .

    Cheers

  10. #50
    Join Date
    Feb 2014
    Beans
    16

    Re: Ubuntu and the asus zenbook (UX302)

    I don't think it is worth to have module parameter for it. Theoretically i should not even try to use msleep in atomic context. I used it because windows driver is doing that. Like i said, we can try to remove msleep.

Page 5 of 6 FirstFirst ... 3456 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •