00:18.36 | *** join/#htc-linux gauner1986 (~Adium@p5DD0CE6F.dip.t-dialin.net) |
00:18.41 | *** part/#htc-linux gauner1986 (~Adium@p5DD0CE6F.dip.t-dialin.net) |
00:21.50 | *** join/#htc-linux surge (~surge@pool-98-118-154-23.bflony.fios.verizon.net) |
00:38.07 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
00:39.46 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
00:41.46 | *** join/#htc-linux sam__ (3da424b4@gateway/web/freenode/ip.61.164.36.180) |
01:29.38 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
02:12.21 | *** join/#htc-linux cjae (~quassel@142-165-27-147.estv.hsdb.sasknet.sk.ca) |
02:14.04 | *** join/#htc-linux swc|666 (~sdub@Aircrack-NG/Friend) |
02:26.53 | *** join/#htc-linux FlawlesStyle (~LOL@unaffiliated/flawlesstyle) |
02:43.13 | *** join/#htc-linux noobhands (fakker@cpc30-hitc6-2-0-cust607.9-2.cable.virginmedia.com) |
02:43.13 | *** join/#htc-linux noobhands (fakker@unaffiliated/fakker) |
02:43.15 | *** join/#htc-linux jonpry (~jon@2602:306:c417:8aa0:8135:1689:db40:5a2b) |
02:43.23 | *** join/#htc-linux khorben__ (~dont@port-83-236-217-161.static.qsc.de) |
02:43.26 | *** join/#htc-linux d3tul3 (~detule@unaffiliated/d3tul3) |
04:20.29 | hopkinskong | d3tul3, ali1234: No, what i mean is, i want to change the android log path to elsewhere, instead of /dev/log |
04:20.43 | hopkinskong | But, i can't find where is that path defined. |
04:21.01 | hopkinskong | I've looked over logger.c, but no clue. |
04:33.21 | jonpry | stuff in /dev/log are just device nodes |
04:33.26 | jonpry | you can make them anywhere you want with mknod |
05:10.50 | ali1234 | specifically this part defines it: http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/staging/android/logger.c#L540 |
05:11.25 | ali1234 | .minor is the minor number for device node |
05:11.49 | ali1234 | the number is dynamic assigned though |
05:13.37 | ali1234 | the device nodes aren't created by the kernel |
05:13.44 | ali1234 | so you won't find any suck in there |
05:13.48 | ali1234 | *such |
05:15.28 | ali1234 | it's going to be in init.rc or somewhere like that |
05:24.05 | ali1234 | hopkinskong: https://android.googlesource.com/platform/system/core/+/master/rootdir/ueventd.rc |
05:25.05 | ali1234 | hmm that's only specifying the permissions :/ |
05:26.08 | hopkinskong | so |
05:26.47 | hopkinskong | i i chnage "/dev/log/*" to "/dev/android_log/*" in ueventd.rc, i could get android log files in "/dev/android_log"? |
05:26.50 | hopkinskong | if i* |
05:27.43 | ali1234 | no |
05:28.03 | hopkinskong | jonpry: If i could create the device with mknod, how the kernel know there is a node, and wirte logs into it? |
05:28.11 | hopkinskong | ali1234: So how to change that? |
05:28.25 | ali1234 | when you fopen a device node the kernel knows |
05:28.38 | ali1234 | it's not a flat file |
05:28.43 | ali1234 | it's not on disk |
05:28.51 | ali1234 | it only stores device major and minor number |
05:28.52 | hopkinskong | its a socket? |
05:28.59 | ali1234 | no, it's not a socket. t's a device node |
05:29.21 | ali1234 | it's more like a socket than a file though |
05:29.22 | hopkinskong | OK, so, what should i do to change /dev/log to /dev/android_log? |
05:30.01 | hopkinskong | As, now, i have syslogd, and it crashes with android's logger |
05:30.16 | hopkinskong | syslogd uses /dev/log, and android log too. |
05:30.27 | hopkinskong | i need to change the path of android log |
05:30.30 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
05:30.36 | hopkinskong | but i don't know how, and where |
05:31.48 | ali1234 | if you mess with the android logger you will break many things |
05:32.40 | ali1234 | try syslogd -p to move it |
05:32.58 | hopkinskong | no. |
05:33.05 | hopkinskong | I must change the android logger location. |
05:33.27 | hopkinskong | I am building Ubuntu Touch on my Leo |
05:33.52 | hopkinskong | And the whole source tree of ubuntu touch is using /dev/alog as android log, instead of /dev/log |
05:34.05 | hopkinskong | because it crashes with /dev/log (syslogd) |
05:34.35 | hopkinskong | The whole CM10.1 source tree, include the userspace logger, logcat, etc, has been changed /dev/alog |
05:34.56 | ali1234 | i see |
05:34.58 | hopkinskong | but my kernel still making /dev/log, and i need to change it to /dev/alog. |
05:35.07 | ali1234 | well, i suggest you go to #ubuntu-touch and ask them how they did it |
05:35.14 | hopkinskong | I asked. |
05:35.20 | ali1234 | nobody answered? |
05:35.24 | hopkinskong | They blamed that it is the kernel problem. |
05:35.37 | ali1234 | o_O |
05:35.46 | hopkinskong | They are saying that it is the problem of my build. |
05:35.50 | ali1234 | it is |
05:36.06 | ali1234 | but the path is not defined by the kernel |
05:36.08 | hopkinskong | They say that all android has been changed to alog. But i disagree with them. |
05:36.26 | ali1234 | who told you this? |
05:36.27 | hopkinskong | My one xl is using log! |
05:36.36 | hopkinskong | ogra_ in #ubuntu-touch |
05:36.46 | ali1234 | ok. he knows what he is talking about |
05:36.59 | hopkinskong | So, not kernel fault, it's who's fault? |
05:37.06 | ali1234 | init |
05:37.14 | ali1234 | or ramdisk contents |
05:37.14 | hopkinskong | android init? |
05:37.19 | hopkinskong | do u mean initrd? |
05:37.19 | ali1234 | yes |
05:37.25 | ali1234 | either/both |
05:37.37 | hopkinskong | wait, i have my OWN, self-created initrd |
05:37.43 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
05:38.25 | ali1234 | i'm actually grepping ubuntu-touch source for /dev/log right now |
05:38.31 | ali1234 | lol |
05:38.34 | hopkinskong | haha |
05:38.43 | hopkinskong | just see |
05:38.52 | ali1234 | maybe i should grep for /dev/alog instead thoug |
05:38.57 | hopkinskong | in ubuntu-touch source tree |
05:39.33 | hopkinskong | You could find the logcat source code in the ubuntu-touch |
05:40.10 | hopkinskong | it is using /dev/alog |
05:41.10 | hopkinskong | ali1234: Do u mean the problem goes to the init script or init file? |
05:41.26 | ali1234 | init scripts, or initrd |
05:41.34 | hopkinskong | ah |
05:41.34 | ali1234 | i don't know which |
05:41.43 | ali1234 | on grouper /dev is tmpfs |
05:41.52 | ali1234 | so something must mount it, and then fill it with device nodes |
05:41.58 | hopkinskong | my initrd.gz included init(script), and init.android(exectuable) |
05:45.26 | ali1234 | fairly sure that's you're problem |
05:45.38 | ali1234 | looks like the really low level stuff is done inside init binary |
05:45.56 | hopkinskong | So it is the problem of "init.android", not "init" |
05:45.59 | hopkinskong | ? |
05:47.36 | ali1234 | found it: https://android.googlesource.com/platform/system/core/+/master/init/devices.c |
05:47.42 | ali1234 | line 625 |
05:48.30 | ali1234 | here is ubuntu version: http://phablet.ubuntu.com/gitweb?p=CyanogenMod/android_system_core.git;a=blob;f=init/devices.c;h=76b552f9345602f71699afcb3520cc2d205b10dd;hb=refs/heads/phablet-10.1#l627 |
05:48.39 | hopkinskong | ah |
05:49.05 | hopkinskong | aha, as i said, it changed to alog |
05:49.11 | ali1234 | yep |
05:49.18 | ali1234 | you need to patch your custom init with that |
05:49.36 | ali1234 | and maybe other things too |
05:49.44 | hopkinskong | init are NOT EQUAL to device.c, right? |
05:50.05 | hopkinskong | line 624(device.c) are not providing /dev/log? |
05:50.14 | hopkinskong | it is just LOADING /dev/log? |
05:50.31 | ali1234 | make_dir(base, 0755); |
05:50.34 | ali1234 | make_dir |
05:50.37 | ali1234 | guess what it does |
05:50.42 | hopkinskong | ah... |
05:51.06 | ali1234 | something else is making the device nodes though |
05:51.10 | ali1234 | you need to patch that too |
05:51.37 | hopkinskong | wait. |
05:52.03 | ali1234 | ah no, that does make the node also |
05:52.08 | ali1234 | so yeah |
05:52.09 | hopkinskong | Is that there are HIGH POSSIBILITY that "init.android" create /dev/log? |
05:52.13 | ali1234 | just patch this file in your init source |
05:52.28 | ali1234 | the possibility is 100% |
05:52.29 | hopkinskong | Is that there are HIGH POSSIBILITY that "init.android" create /dev/log? |
05:52.39 | hopkinskong | init.android IS executable, NOT that script. |
05:52.43 | hopkinskong | OK. |
05:52.48 | hopkinskong | I think i know why. |
05:53.12 | hopkinskong | The init.android that i used was coming from other *ordinary* android builds |
05:53.16 | ali1234 | yes |
05:53.19 | ali1234 | that is the problem |
05:53.27 | ali1234 | that's what i'm trying to tell you |
05:53.28 | hopkinskong | I am not using the *ubuntu-touch* one |
05:53.52 | hopkinskong | The problem was because i copied other's initrd's android.init |
05:54.07 | hopkinskong | ah ha, gonna compile it again, thanks ali1234 |
06:02.21 | *** join/#htc-linux rajkosto (~rajkosto@wan.rajkonet.info) |
08:26.20 | *** join/#htc-linux paulk-desktop (~paulk@lib33-1-82-233-88-171.fbx.proxad.net) |
08:29.40 | *** join/#htc-linux arif-ali (~arif-ali@2.26.203.62) |
08:36.29 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
08:39.02 | *** join/#htc-linux gassed (faxed@c-76-30-155-69.hsd1.tx.comcast.net) |
09:57.32 | *** join/#htc-linux BabelO (~fcr@unaffiliated/babelo) |
10:07.11 | *** join/#htc-linux gassedup (faxed@c-76-30-155-69.hsd1.tx.comcast.net) |
10:24.16 | *** part/#htc-linux Bushman (bushman@91-146-248-112.internetia.net.pl) |
12:08.22 | *** join/#htc-linux zeusk (011781dd@gateway/web/freenode/ip.1.23.129.221) |
13:43.23 | *** join/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
13:46.26 | *** part/#htc-linux sam__ (3b4e0875@gateway/web/freenode/ip.59.78.8.117) |
15:02.18 | *** join/#htc-linux arrrghhhAWAY (~arrrghhh@204.45.126.170) |
16:01.08 | *** join/#htc-linux Jaspie_ (~quassel@p54A39FE1.dip.t-dialin.net) |
16:20.01 | *** join/#htc-linux ccxCZ (~ccxCZ@156.200.broadband11.iol.cz) |
16:48.32 | *** part/#htc-linux Jaspie_ (~quassel@p54A39FE1.dip.t-dialin.net) |
17:34.25 | *** join/#htc-linux a-st (~a-st@unaffiliated/a-st) |
18:01.34 | *** join/#htc-linux gauner1986 (~Adium@hmbg-5f7671d2.pool.mediaWays.net) |
18:10.21 | *** join/#htc-linux arif-ali (~arif-ali@2.26.203.62) |
18:56.05 | *** join/#htc-linux arif-ali (~arif-ali@2.26.203.203) |
18:59.36 | *** join/#htc-linux gauner1986 (~Adium@hmbg-5f7671d2.pool.mediaWays.net) |
19:18.01 | toastcfh | is there no hope for the htc 8x unlocking |
19:45.24 | *** join/#htc-linux gauner1986 (~Adium@hmbg-5f7671d2.pool.mediaWays.net) |
19:48.08 | *** join/#htc-linux ltxda (~anon@c-98-194-107-10.hsd1.tx.comcast.net) |
19:48.09 | *** join/#htc-linux ltxda (~anon@unaffiliated/ltxda) |
20:45.22 | *** join/#htc-linux gauner1986 (~Adium@hmbg-5f7671d2.pool.mediaWays.net) |
21:41.52 | *** join/#htc-linux rekoil (~rekoil@c-2aa7e055.04-2-64736c12.cust.bredbandsbolaget.se) |
21:44.16 | *** join/#htc-linux AdamBH (~AdamBH@197.1.56.118) |
21:50.03 | *** join/#htc-linux AdamBH (~AdamBH@197.1.56.118) |
23:15.09 | *** join/#htc-linux Marc|laptop (~quassel@phpbb/modifications/marc1706) |
23:17.58 | *** join/#htc-linux Ondalf_ (~ondalf@cable-roi-50ddf8-39.dhcp.inet.fi) |
23:20.50 | *** join/#htc-linux eXtremo_ (~eXtremo@177.158.124.40) |
23:20.57 | *** join/#htc-linux eXtremo (~eXtremo@unaffiliated/extremo) |
23:22.08 | *** join/#htc-linux ccxCZ (~ccxCZ@156.200.broadband11.iol.cz) |
23:41.14 | *** join/#htc-linux eXtremo_ (~eXtremo@177.158.124.40) |
23:42.06 | *** join/#htc-linux eXtremo (~eXtremo@unaffiliated/extremo) |
23:48.44 | *** join/#htc-linux eXtremo (~eXtremo@unaffiliated/extremo) |