Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
28 user(s) are online (25 user(s) are browsing Forum)

Members: 0
Guests: 28

more...


Browsing this Thread:   1 Anonymous Users






Re: CD/DVD under ahci.device keeps mounting and unmounting
#7
Home away from home
Home away from home


See User information
I reverted back that code I altered, I'll leave it to someone knowledgeable.

Meanwhile I had to relax timeouts in ahci code as when with no debug output Aros installer always failed at the unicode file (something, something, forgot the name but begins with _) while copying grub files.

I changed the timeout from 1000ms to 1500ms and it no longer chokes on that file.

I don't know why it always failed on that one single file, it maybe because of the drive or the cd-rw disc used (TDK 4x-12x, 80min 700mb)

Posted on: 2015/5/6 10:37
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: CD/DVD under ahci.device keeps mounting and unmounting
#6
Home away from home
Home away from home


See User information
Docking station arrived yesterday, unfortunately USB3.0 ports are implemented as a superspeed hub and it only passes through the usb lines to the laptop and in my case there is no xHCI controller on Dell Latitude E6410 -> ports are USB2.0 only...

Good news is that Aros is able to use the serial port for debugging.

But the main issue is that ahci.device does not recognise the presence of a disk (cd/dvd) correctly and by looking at the source it is clear why that is. Or is it that clear...

Explicit sense request are disabled/not implemented and SCSI_TEST_UNIT_READY always return hard coded success. SCSI_TEST_UNIT_READY is used in the monitor task that should tell if the disk presence has changed.

This is not really my cup of tea, better revert my commit.

Posted on: 2015/5/5 7:36
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: CD/DVD under ahci.device keeps mounting and unmounting
#5
Home away from home
Home away from home


See User information
I'll wait for the docking station, it will then be a lot easier to see what is happening with my drive.

Posted on: 2015/5/3 9:14
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: CD/DVD under ahci.device keeps mounting and unmounting
#4
Home away from home
Home away from home


See User information
Should I report your changes for "Week in AROS" as improving the situation (even if a bit) or skip reporting them at the moment?

Posted on: 2015/5/3 6:13
Krzysztof

"There is no such thing as software for free. If it is not the user who covers the cost of software creation with money, it is the developer who covers this cost with his own free time."

www.aros3d.org
www.twitter.com/ddeadwood
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: CD/DVD under ahci.device keeps mounting and unmounting
#3
Home away from home
Home away from home


See User information
While reading on some SCSI-2 manuals it is clear that the commit I made is nowhere near enough or correct. It will take a few days but sometime next week I'll have a docking station for this Dell laptop. It has ordinary serial port for debugging and some USB3.0 ports :)

Posted on: 2015/5/2 23:39
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: CD/DVD under ahci.device keeps mounting and unmounting
#2
Home away from home
Home away from home


See User information
Never mind, I had a whack at it myself. Some of the issues still remain, for example one can't eject the cd/dvd (at least when it is the boot device) as Aros does not recognize it again. Same happened with the previous version also.

Usb massstorage class has also a bug decoding the sense data, but I do not have a usb cd/dvd drive so I won't touch that.

Posted on: 2015/5/2 15:05
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


CD/DVD under ahci.device keeps mounting and unmounting
#1
Home away from home
Home away from home


See User information
When CD/DVD is spinned down the drive gets unmounted(or TD_ADDCHANGEINT gets called)

In ahci_cam_aros.c code checks (ahci_PortMonitor) if the device is ready using scsi commands but I assume that when the drive gets spinned down the flag will be set. Spinned down drive is ofcourse not ready but that does not mean the medium has changed.

There is a note about querying sense data (TODO) in ahci_cam_aros.c

USB mass storage code uses the sense data with hardcoded definitions, but the definitions for sense data can be found in ahci_scsi.h

Could someone more knowledgeable take a look? It takes all the pleasure of using Aros when the drive keeps unmounting and mounting.

Posted on: 2015/5/1 8:48
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project