yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] domenictroilo:
I am looking to compile a new kernel for this device. I have pulled off the boot.img file from /dev/block/nandc and used split_bootimg.pl to pull apart the kernel and the boot ramdisk. I have used extract-ikconfig to get the kernel config and built my new 3.4 kernel (with modules). So far so good...

I have tried to build the new boot.img file with no avail. My concern is with the original kernel as the new one should be build the same (I think). It looks like it is not compressed as I run the command

file boot.img-kernel

It returns

boot.img-kernel: data

So it is not a Linux kernel ARM boot executable zImage

Is this correct? Can Android boot with this or is the split_bootimg.pl tool not creating the file correctly (it does pull the ramdisk as I have uncompressed it fine! and the file does contain the kernel config)

Ok So assuming I can create a proper boot.img with my built zImage and the old ramdisk, what do I need to do with the modules? Do I update the boot.img on the tablet and copy the modules over to the existing /system/lib/modules? (this appears to not work)

I did not find an exact guide on android kernel and the modules....

Domenic

link to the old (working) boot.img hxxps://docs.google.com/file/d/0B0c1jpaziDZ-NU5Sd18wbUVjN1E/edit?usp=sharing
[Android Q&A, Help & Troubleshooting] domenictroilo:
some progress

Ok so the mkimage command can be used to pull the uImage out of the Kernel Part of the file like this:

mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n "Linux 3.0.8" -d uImage boot.img-kernel2

The only question is where in the boot process can I find the "Load Address" and "Entry Point" values that are required to create my uImage. I would think that these are going to be needed as options when I build my new kernel, and I will need to change the boot process or add a boot.scr file with my options. I have mounted the /dev/block/nanda partition (uBoot partition) but am not certain on where I would find the current environment values.

I did find this little snippet on the net that referes to the base address for this device xxx.tabletroms.com/forums/all-other-android-tablets-general-discussion/5791-full-specs-whatever-else-polaroid-pmid10c-tablet-2.htmlx

mkbootimg --kernel boot.img-kernel --ramdisk boot.img-ramdisk.cpio.gz --cmdline 'console=ttyS0,115200 rw init=/init loglevel=8' --board sun4i --base 0x40000000 -o boot.img

But he never discusses where he found the -base address. Is this the same as the Load Address and Entry Point?

Domenic
[Android Q&A, Help & Troubleshooting] domenictroilo:
So the base address is found in script.bin (converted to text file with bin2fex tool). This is the information found in it:

[dram_para]

dram_baseaddr = 0x40000000

Still how do I find the "Load Address" and "Entry Point" for the current kernel...
[Android Q&A, Help & Troubleshooting] domenictroilo:
unmkbootimg

Well more reading leads me to use unmkbootimg but on my linux 32bit system all I get is:

# strace ./unmkbootimg

execve("./unmkbootimg", ["./unmkbootimg"], [/* 20 vars */]) = 0

--- SIGILL (Illegal instruction) @ 0 (0) ---

+++ killed by SIGILL +++

Illegal instruction

Too bad I can see the souce code to find out what this program is doing or compile it for myself.....
[Android Q&A, Help & Troubleshooting] bigsupersquid:
split_bootimg.pl should give you the parameters i listed on tabletroms.

What source are you using? Polaroid never coughed any up and i last harassed them in February.
[Android Q&A, Help & Troubleshooting] domenictroilo:
Here is the split:

letourneau:~/tmp# ../split_bootimg.pl /root/boot.img

Page size: 2048 (0x00000800)

Kernel size: 8112836 (0x007bcac4)

Ramdisk size: 210343 (0x000335a7)

Second size: 0 (0x00000000)

Board name:

Command line: console=ttyS0,115200 rw init=/init loglevel=8

Writing boot.img-kernel ... complete.

Writing boot.img-ramdisk.gz ... complete.

I am using the linux--sunxi kernel for now with an additional patch for dmard06.ko (which I do not expect to work!) I emailed them for the kernel source but just received a form email saying they will get back to me..... oh well I will as again.

Just playing around for now to see if a newer kernel will tweek up the speed on this device as it is very laggy.

Domenic

I may be using an older version of split_bootimg.pl?
[Android Q&A, Help & Troubleshooting] domenictroilo:
On another note, I was able to execute unmkbootimg on a different linux server. I was attempting to run it on a PIII 800 so it needs something > a pentium (I guess).

./unmkbootimg boot.img

unmkbootimg version 1.2 - Mikael Q Kuisma <kuisma@ping.se>

Kernel size 8112836

Kernel address 0x40008000

Ramdisk size 210343

Ramdisk address 0x41000000

Secondary size 0

Secondary address 0x40f00000

Kernel tags address 0x40000100

Flash page size 2048

Board name is ""

Command line "console=ttyS0,115200 rw init=/init loglevel=8"

This image is built using standard mkbootimg

Extracting kernel to file zImage ...

Extracting root filesystem to file initramfs.cpio.gz ...

All done.

---------------

To recompile this image, use:

mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0x40000000 --cmdline 'console=ttyS0,115200 rw init=/init loglevel=8' -o new_boot.img

---------------

Domenic
[Android Q&A, Help & Troubleshooting] bigsupersquid:
think the parameters you're searching for are specific for building the new kernel without proper source code to extract them from?

maybe you could get them from dmesg while the tablet is running?

else think there might be a way to grep the variable names in the existing kernel binary or headers?

i also would like a fresh kernel.

maybe useful stuff here:

https://vilimpoc.org/research/sh3dev/kernel-hacking.html
[Android Q&A, Help & Troubleshooting] bigsupersquid:
http://xdaforums.com/showpost.php?p=46668556&postcount=31

thanks jjchico

i haven't checked this out yet, but may be useful.
[Android Q&A, Help & Troubleshooting] domenictroilo:
Well I have build a new kernel and copied the modules over, but I does not boot. It appears that it never mounts the ramdisk as it never gets to the second splash screen, but I am flying blind as there is no serial port to debug with. I suspect that I do not quite understand the boot process for this tablet.... here is what is on the nanda vfat partition: (good information here http://rhombus-tech.net/allwinner_a10/a10_boot_process/)

since this is in my linux.ini

cat linux.ini

[segment]

img_name = c:\linux\u-boot.bin

img_size = 0x80000

img_base = 0x4A000000

[script_info]

script_base = 0x43000000

script_size = 0x10000

[logo_info]

logo_name = c:\linux\linux.bmp

logo_show = 1

Not quite certain how to setup img_base on my compile I guess.

I have tried the linix.ini from the link above but the tablet booted to livesuite image... that is a fail.
[Android Q&A, Help & Troubleshooting] domenictroilo:
Not being a kernel developer.... I am wondering if the option to setup SUNXI_NAND_COMPAT_DEV is creating /dev/block/nandX or /dev/nandX as this will definatly impact the init.sun4i.rc file as it is mounting /dev/block/nandX This could be my first issue.... but then does /init first display the initlogo.rle or start processing init.sun4i.rc. Well if the first thing it does in load initlogo.rle then I am not even getting this far....below is the description of SUNXI_NAND_COMPAT_DEV

Symbol: SUNXI_NAND_COMPAT_DEV [=y] │

│ Type : boolean │

│ Prompt: Create old nand device names (nanda-nandz) │

│ Defined at drivers/block/Kconfig:564 │

│ Depends on: BLK_DEV [=y] && SUNXI_NAND [=y] │

│ Location: │

│ -> Device Drivers │

│ -> Block devices (BLK_DEV [=y]) │

│ -> SUNXI Nandflash Driver (SUNXI_NAND [=y]) │
[Android Q&A, Help & Troubleshooting] domenictroilo:
well a little more reading leads me to this page on the CarbonRom http://www.slatedroid.com/topic/64378-rom-carbonrom-422/ turns out that if you want to run a 3.4 kernel you MUST update u-boot (http://www.mediafire...4ro667xcfkd2dv7).... so I have flashed the CarbonRom and it does boot with the u-boot update. Not to worry the new u-boot will still boot the old kernel. The only issue I have with the CarbonRom kernel is the missing dmard06 driver so no touch screen..... I may get a new kernel working yet!
[Android Q&A, Help & Troubleshooting] bigsupersquid:
https://github.com/fsebentley/linux_allwinner_drivers_input_touchscreen_mods

https://groups.google.com/forum/#!topic/linux-sunxi/D0n8dyaVA34

?
[Android Q&A, Help & Troubleshooting] domenictroilo:
the patch compiles,you need to comment out #include <linux/earlysuspend.h> as it is not supported on the newer kernel and not required by the driver anyway. I just need to get the kernel to actually load lol..... I have at least gotten past the boot screen now, but it hangs.... I will try a different arm tool chain and see what happens next.....
[Android Q&A, Help & Troubleshooting] domenictroilo:
So close but yet so far..... well I have the new kernel installed and booted with adb shell available but it turns out the new mma7660.ko is not compatable with my device I get this error from dmesg over and over and over....

<4>[ 3254.934675] incomplete xfer (0x20)

<3>[ 3254.938093] Assertion failed! drivers/hwmon/mma7660.c,196,mma7660_read_xyz,result>=0

Will rename the driver and see if I can get past init further in the boot....

Edit

Well more issues with drivers the dmard06 is not compatible either, I had more success with the Carbon Kernel I will see if I can find the source git, should be around....

dmesg | busybox grep dmard

<4>[ 5.408528] dmard06: init

<3>[ 5.447835] dmard06gsensor_fetch_sysconfig_para: after: gsensor_twi_addr is 0x4c, dirty_addr_buf: 0x4c. dirty_addr_buf[1]: 0xfffe

<4>[ 5.488546] dmard06_init: after fetch_sysconfig_para: normal_i2c: 0x4c. normal_i2c[1]: 0xfffe

<6>[ 5.508612] gsensor_detect: Detected chip dmard06 at adapter 1, address 0x4c

<4>[ 5.601533] dmard06 gsensor I2C err = 0!

<4>[ 5.613430] dmard06 probe failed

<4>[ 5.624926] dmard06: probe of 1-004c failed with error -1

This all makes some sense as Polaroid has not get gotten me the kernel and the drivers they load (their kernel have very unique names:

Module Size Used by Not tainted

8192cu 575431 0

rtl8150 8910 0

mcs7830 6557 0

qf9700 8513 0

asix 22500 0

usbnet 23745 3 mcs7830,qf9700,asix

dmard06_gl 8202 2

mma7660 6541 0

mali 130177 14

ump 42178 19 mali

gt811_ts_828 19947 0

sun4i_csi0 27946 0

nt99250 14254 1

gc0308 12848 1

videobuf_dma_contig 5659 1 sun4i_csi0

videobuf_core 18067 2 sun4i_csi0,videobuf_dma_contig
[Android Q&A, Help & Troubleshooting] domenictroilo:
Well more issues with drivers the dmard06 is not compatible either, I had more success with the Carbon Kernel I will see if I can find the kernel source git, should be around....

dmesg | busybox grep dmard

<4>[ 5.408528] dmard06: init

<3>[ 5.447835] dmard06gsensor_fetch_sysconfig_para: after: gsensor_twi_addr is 0x4c, dirty_addr_buf: 0x4c. dirty_addr_buf[1]: 0xfffe

<4>[ 5.488546] dmard06_init: after fetch_sysconfig_para: normal_i2c: 0x4c. normal_i2c[1]: 0xfffe

<6>[ 5.508612] gsensor_detect: Detected chip dmard06 at adapter 1, address 0x4c

<4>[ 5.601533] dmard06 gsensor I2C err = 0!

<4>[ 5.613430] dmard06 probe failed

<4>[ 5.624926] dmard06: probe of 1-004c failed with error -1

This all makes some sense as Polaroid has not provided me the kernel they used and the drivers they load have unique names see below from the original stock rom:

Module Size Used by Not tainted

8192cu 575431 0

rtl8150 8910 0

mcs7830 6557 0

qf9700 8513 0

asix 22500 0

usbnet 23745 3 mcs7830,qf9700,asix

dmard06_gl 8202 2

mma7660 6541 0

mali 130177 14

ump 42178 19 mali

gt811_ts_828 19947 0

sun4i_csi0 27946 0

nt99250 14254 1

gc0308 12848 1

videobuf_dma_contig 5659 1 sun4i_csi0

videobuf_core 18067 2 sun4i_csi0,videobuf_dma_contig
[Android Q&A, Help & Troubleshooting] bigsupersquid:
I suspect after all the trouble I had with LG source that there are device-specific bits in the drivers.

Polaroid will most likely have to cough up source to get it all working.

Have you considered trying punchmod to use the old drivers? I dunno if that'd work considering the stock kernel is a lower version... but it might be worth a try.
[Android Q&A, Help & Troubleshooting] domenictroilo:
I have changed the vermagic on the old modules and tried with the newer kernel but no go.... the latest 3.0 sunxi kernel is at 3.0.96 so I will build this one and see if I can get the special 3.0.8 polaroid modules to load.

I have a ticket open with Polaroid lol I guess we will see if the cough up a kernel or not.... I would not put money on it...
[Android Q&A, Help & Troubleshooting] bigsupersquid:
I've had an open ticket since November from talking on the phone after email did nothing.

nothing but autoresponder.
[Android Q&A, Help & Troubleshooting] domenictroilo:
Do you believe that something like this http://gpl-violations.org/faq/violation-faq.html could force them to provide the source code? I could try to get the group at "FreakTab" to make the same requests for the kernel sources. Maybe with enough requests the gpl-violations group could take it on?

(K I am getting off topic here sorry anyone out there......)

I have attempted to build the 3.0.96 kernel but it did not boot.... back to hacking at the .config to see what I have missed (I need to move my build environment off this old p3 800 lol)
[AT&T Samsung Galaxy Note II] dmxinc:
Just wanted to say thanks to Bajanman, aaron147, and Scott(ScottsRoms). I was constantly messing with ROMs, which is fun thanks to all the devs here, trying to get better reception. It was deceiving because the phone worked fine, or so I thought. My wife upgraded her phone to the HTCOne and I noticed she was getting waaay better reception. So I went back to stock and I called my carrier, who walked me through trouble-shooting. Turns out that a few of the Note 2s in my area were "not perfect." 30 days before warranty up......They sent me a new one. My phone was bad......With my new one, no problems now, and reception is better than my wife's One...hehe. But, I never would have thought to call it in had I not had the help to try everything to fix it. Thanks. Oh, and everyone who wrote the guidelines to return to stock and "unroot" back to factory. :good::D
[AT&T Samsung Galaxy Note II] Bajanman:
Your very welcome brotha! Glad you got your problem resolved..:thumbup: here 2 help where I can

Hey ya got a new phone out the whole thing that's working excellent

:cool: lol
[Samsung Epic 4G Touch] ReapersDeath:
So a month ago I upgraded my epic 4g touch to stock rooted most current official release, and flashed the newest clock work mod... Not sure what kernel. And anyhow, after flashing it, basically my battery dropped in more than half.. After an hour of it sitting around I drop 30%. I even have greenify keeping my apps hibernated. Since I'm use to the s3, I'm not sure what to do.. Do I just flash a new kernel or what? Yes I did search and got nothing about battery drain after flashing an update.
[Samsung Epic 4G Touch] bilgerryan:
Try the suggestions here-http://xdaforums.com/showthread.php?t=2474084
[Samsung Epic 4G Touch] ReapersDeath:
Those are all common sense and app suggestions... This isn't an issue to be fixed with an app.. It's something going on.. Maybe the kernel
[Samsung Epic 4G Touch] bilgerryan:
Most likely an app causing wakelocks that isn't allowing your phone to sleep. Look in Settings/About Phone to see what kernel you flashed.
[Samsung Epic 4G Touch] savagepanda:
I believe that your power drain issues are related to mine. Sometime in the last two months I found my battery draining about twice as fast. Upon investigation i found that nlpcollector was the culprit (google location services). After turning off google location services I found that my battery life went back to normal. I understand that this isn't an ideal fix, but hopefully it is temporary and google fixes nlpcollector so it isn't doing wakelocks like crazy.
[T-Mobile Samsung Galaxy Note 3] ramethorne:
This seems to be the only issue. Do I need to change some settings somewhere after flashing or should I just try to reflash the whole thing.
[T-Mobile Samsung Galaxy Note 3] AdmiralCF420:
Look in your APN settings.
[T-Mobile Samsung Galaxy Note 3] decalex:
Settings, more, mobile networks, access point names, make sure apn is fast.t-mobile.com
[T-Mobile Samsung Galaxy Note 3] ramethorne:
T-mobile lte is selected and the settings are filled out. What could have caused the lte to stop working? It doesn't seem to matter what I do.
[T-Mobile Samsung Galaxy Note 3] markanthony123:
When I flashed it, network mode was set to 4G. Changed it back to LTE and got back my LTE.

Settings>More>Mobile Networks>Network Mode
[T-Mobile Samsung Galaxy Note 3] ramethorne:
Ok I am back on the stock rom and I am still stuck on the edge network and my apn settings are greyed out but look ok. The network mode is on lte/wcdma/gsm and the status bar says 4g but I have no signal bars and extremely slow spped unless I am on wifi. I can get calls and texts though. Anything else important to solve this?
[T-Mobile Samsung Galaxy Note 3] ramethorne:
Sorry for double post but my imei number is 15 digits long if that matters.
[T-Mobile Samsung Galaxy Note 3] akaufman123:
LTE GONE

Bump... Having the same problem! Tried everything with respect to network mode, APNs, *#2263# and flashing different roms.

Although it worked at first, LTE disappeared on me out of the blue. Any ideas?
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] wdkingery:
If I tap the home button buy accident whilst on the home screen, it crashed touch wiz home.

Any way to delete this action programming ?
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] takki83:
I was delete touchwiz and use apex. No more s finder and s voice but google search and google now
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] Jammol:
There was an option when magazine is open to turn that off.
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] Agent:
You can always install something like nova then totally can touchwiz
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] tmb993:
Re - enable My Magazine. Open it and go to settings. There's only two things, the later is what you want.
[General Topics] Broon:
Hi,

I need to do a hard reset on my device and want to store all my contacts somewhere safe so I don't have to manually input them all again. The problem is I don't use outlook on my PC. Is there any way I can pull them off the Exec and store them on my PC for safe keeping?

I would normally throw them on the SIM but there appears to be no tool to add them all at once and I am not manually moving 150 contacts myself :)
[General Topics] Rudegar:
tried using the good old shortcut called Ctrl+A to choose all at once ?

not sure if the sim have all contact infos like birthdays and work phone and...

like outlook have though
[General Topics] Broon:
No Ctrl key I am afraid :(
[General Topics] Rudegar:
the software keyboard have a ctrl key
[General Topics] Rudegar:
imho then the easy way would be to install outlook and sync with it

and export it to pst file format

uninstall outlook

and if you ever had to restore it

then install outlook once more and import the pst file and then sync once more

not sure about universal but my xda2 came with a cd with outlook
[Galaxy Note II Q&A, Help & Troubleshooting] jaffa1980:
Just a quick question and I know the answer is probably no but wanted to be sure as it would be so cool.

Is it possible to replace the camera in the note 2 with another with a higher resolution? Say the note 3 or the s4?

Thanks in advance and please no derogatory remarks it's just a thought and I wanted to put it to bed in my head.
[Galaxy Note II Q&A, Help & Troubleshooting] jaffa1980:
Just bumping. Got a lot of views but no replies. Anyone??
[Galaxy Note II Q&A, Help & Troubleshooting] xperiasblack:
Driver incompatibility problem....

---------- Post added at 01:55 PM ---------- Previous post was at 01:54 PM ----------

You could do but you need to decompile kernel and change the related files with the other phone related files.....
[Galaxy Note II Q&A, Help & Troubleshooting] pakure:
Track ditto note 3 rom for any possibility...they have been trying to put the note 3 camera. ...they might release once bugs are sorted out
[Galaxy Note II Q&A, Help & Troubleshooting] jaffa1980:
Thanks I thought so... worth a look just in case.

Yeah I'd love the camera application so will keep an eye thanks but I was on about the physical camera not the software.

Thanks anyway guys
[LG Optimus 4X HD] NicolasMMM:
I did it through Clockword recovery mod. I wiped data and cache and installed CM 10.2 from a zip file. Now my phone has CM ROM and it seems like it has CM kernel too. How is this possible, since I have a locked bootloader? Will it be functioning normally?
[LG Optimus 4X HD] Omario-242:
How did you even manage to install a custom recovery with a locked bootloader?
[LG Optimus 4X HD] kessaras:
you cant. i thought 1st time i did it with locked the bootloader but not. try going to upgrade mode , upper left corner will say if bootloader is unlocked. then reboot.
[LG Optimus 4X HD] NicolasMMM:
With ROM manager and root access.
[LG Optimus 4X HD] Omario-242:
You can't install any recovery with locked bootloader. Either it's unlocked or there's no custom recovery.
[LG Optimus 4X HD] NicolasMMM:
Well, there is a custom recovery, ROM and kernel. Or it seems to be so (about the last one). But I never unlocked my bootloader, although I tried with many procedures. Is it possible I unlocked it without wiping everything? And how can I check it?
[LG Optimus 4X HD] darkren:
Hmm i only know the way with hiddenmenu but that doesnt work on cm anymore:(
[LG Optimus 4X HD] Flying_Bear:
yes you could've, there's a fuse editing method that doesnt wipe internal data.

in order to check if its unlocked, turn off your phone. hold vol - button and plug in charge cable. you should be in s/w upgrade screen; in upper left corner you'll see that your bootloader is unlocked ;)

if you hadn't unlocked bootloader, you would've softbricked the device while isntalling custom rom.
[LG Optimus 4X HD] kessaras:
well.... u dont really even read what we answer to ur posts, do you ?

post #3 tells u to go to upgrade screen and check it from upper left corner. of course is not necessary to wipe anything to unlock the bootloader. at least for the latest way to unlock it , since im kinda new to android i've never seen the older ways.
[LG Optimus 4X HD] NicolasMMM:
Sorry, I did not comprehend your post, since I was not aware of the S/W upgrade mode.

I can't get past the "Please wait while upgrading..." message though.

By the way, yes, I did try the fuse editing method. However, an app said "all fuses are blown, phone permanently locked" and I wasn't getting that message before. I guess it was lying :p
[T-Mobile Samsung Galaxy Note 3] chadcspencer:
So this has happened to me at home and work but it's not consistent. Some times when I try to connect I get a message on the WiFi connect that says "Network disabled because Internet connection is slow" (see picture). Any idea what criteria is used to determine this, and is there a way to over ride it?
[T-Mobile Samsung Galaxy Note 3] markysd:
I'm at work right now and I just got kicked out wifi due to too slow lol.. but at home I have not got it yet.. maybe too much people at work using the wifi network. .