You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
Hi, I'm building Androix x86 4.4 and I noticed that I can't use logcat. The following message appears:
Unable to open log device '/dev/log/main': No such file or directory.
Is there any way to enable the logger in the source files. I've tried to set the ANDROID_LOGGER=y inside kernel/drivers/staging/android/Kconfig, but the log is still not working.
Is there a way to enable the log so I can use logcat?
Thanks in advance,
Humberto Politi.
Chih-Wei Huang
unread,
Oct 2, 2015, 12:06:40 AM10/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
2015-10-01 23:56 GMT+08:00 Humberto Politi <humbert...@gmail.com>:
> Hi, I'm building Androix x86 4.4 and I noticed that I can't use logcat. The following message appears:
>
> Unable to open log device '/dev/log/main': No such file or directory.
Don't know what you did exactly.
The logcat should just work in the 4.4-r3
and any older release.
> Is there any way to enable the logger in the source files. I've tried to set the ANDROID_LOGGER=y inside kernel/drivers/staging/android/Kconfig, but the log is still not working.
> Is there a way to enable the log so I can use logcat?
Did you sync the code completely
and follow the instructions to build
the target (android_x86) correctly?
ANDROID_LOGGER=y should just be set
in the kitkat-x86 branch.
(Note it's unnecessary for lollipop-x86)
You don't need to change anything.
Or what you have changed to break it?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
I don't really know what I did to break the logger. I haven't modified much the source, yet logcat was never available for me. All I did was to create a new device for my build. Anyway, I'll re-sync the repo for android-x86 and try again.
Thank you. Humberto Politi.
Chih-Wei Huang
unread,
Oct 2, 2015, 10:36:09 AM10/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
2015-10-02 19:56 GMT+08:00 Humberto Politi <humbert...@gmail.com>:
> I don't really know what I did to break the logger. I haven't modified much
> the source, yet logcat was never available for me. All I did was to create a
> new device for my build. Anyway, I'll re-sync the repo for android-x86 and
> try again.
Have you tested the 4.4-r3 release?
Can you see logcat?
Humberto Politi
unread,
Oct 2, 2015, 11:37:21 AM10/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
Are you referring to the pre-build image in the website? If so, then yes, I am able to use logcat in that image. Only when I'm the one building the code that I can't use it.
Thanks, Humberto Politi.
Chih-Wei Huang
unread,
Oct 2, 2015, 1:03:25 PM10/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
2015-10-02 23:37 GMT+08:00 Humberto Politi <humbert...@gmail.com>:
> Are you referring to the pre-build image in the website? If so, then yes, I
> am able to use logcat in that image. Only when I'm the one building the code
> that I can't use it.
I suspect you didn't build the only valid
target named android_x86.
Did you define and build your own target?
Note the kernel config for kitkat-x86 was
combined by the two files:
kernel/arch/x86/configs/android-x86(_64)_defconfig
device/generic/x86/android-x86_diffconfig
CONFIG_ANDROID_LOGGER=y was defined in the latter.
If you defined your own target,
you need to add a similar diffconfig by
TARGET_KERNEL_DIFFCONFIG
in the BoardConfig.mk.
Or just add CONFIG_ANDROID_LOGGER=y
to the defconfig if you don't mind the hackish.
Message has been deleted
Chih-Wei Huang
unread,
Oct 2, 2015, 1:56:42 PM10/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
it was clear when I re-read what you said...that's why the question was deleted from the post - thanks
Humberto Politi
unread,
Oct 3, 2015, 12:20:10 PM10/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
Are you referring to the pre-build image available in the website? If so, then yes, I am able to see logcat. It's only when I'm compiling from source that logcat seems disabled.
Em sexta-feira, 2 de outubro de 2015 11:36:09 UTC-3, Chih-Wei Huang escreveu:
Humberto Politi
unread,
Oct 20, 2015, 1:06:42 PM10/20/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android-x86
Sorry for the delay in responding. You were correct. Building the valid target named android_x86 fixed logcat.