My MAC address is different. Did I get hacked? - Galaxy S III Q&A, Help & Troubleshooting

I just realised right now that my MAC address is different from what it was before.
Previously it was 38:AA:3C:XX:XX:XX.
and now it is 00:12:34: D3:B2:68
I havent done any serious modifications to my phone in a while.
I've been on the same CM 10.2 with googy maxx kernel for over a month now.
The only root app I installed recently is the "Paragon NTFS&HFS+" from the play store.
Did I get hacked?
How do I change it back to the original one?

bump

bump

You did not get hacked. Theoretically, the MAC Address is a unique and hardware-stored value (firmware, ROM), so it cannot be changed. However, there are tools that can spoof it, such as MACMan. Your MAC address is just probably spoofed by some built-in feature/software.
Edit:
I did a little bit of research and it looks like it's your kernel's fault. I found this in its changelog:
Code:
13/09] Version 1.7.2 :
- CM10.2 : Fixed keys backlight disabling
- CM10.2 : Fix network "arrows" not showing correctly
[B]- bcmdhd : Disable multicast on sleep & [U]allow mac adress changing[/U][/B]
- Ramfs : Fixed booting problem on some sammy roms as 2ndrom
- Stweaks : Raised pegasusq hotplug max values
It probably modified the MAC address "on its own" (as in a built-in feature) or it was modified by another application.
As about reverting to your original MAC address, try flashing another kernel/ROM (the stock one, for example).

Related

[Oct 9][SD][UPDATE] Bangsters V1.5 | RMNET + PPP | [Kernel: R11 (AXI/NOAXI) + EVO]

Bangsters V1.5 (CM6) Froyo Theme
AXI + NOAXI + EVO | RMNET + PPP | BRUT MAPS
Highlights:
- WIFI Tethering/Hotspot! Works flawless with RMNET, for PPP need to run a script
- USB Mass Storage
- Cyanogen CM6 latest nightly
- Change Internet, DPI and Data Image size from startup.txt
- led light and keypad lights
- GPS fixed
- Bluetooth fixed (supposedly, please test and confirm)
- Michyprima RC11 Normal with AXI and NON AXI, or EVO zImage (easily switch between the three via startup.txt, or even use your own)
- added BRUT MAPS
- updated to latest launcherpro and ADW Launcher
- GPS Zone easily configurable via startup.txt as well
I'm releasing this build which I use daily. It's now V1.5 as it is a stable build suited for daily use. This is a standard froyo theme (2.2) with adjustable dpi settings and adjustable data image size from startup.txt. It is also using the latest R11 zImages from MichyPrima and Evo zImages. Simply switch via editing startup.txt
Note: Previous users of RC1.0/1.1 please wipe everything and reinstall as I changed a lot.... I went the route of everyone else with a system.ext2 file system instead of htcleo_update.tar.gz... this makes it easier to reinstall build as you only have to delete data.img.
To upgrade from previous version while keeping your data intact:
Previous users of V1/V1.1,1.2,1.3, you can just copy over the system.ext2, rootfs.img, and root folder as well as the other folders, and leave your data.img so that you get to keep your settings.
Some features:
CM6 Nightly 9/19/2010 build
180 dpi or 240dpi, easily change from startup.txt - more icons in screen when combined with ADW Launcher
Includes ADW Launcher and LauncherPro
Following Working: Camera w/ Flash, Camcorder, GPS (USA default), 3G, Wifi, WIFI Tethering/Hotspot, Flashlight with 180dpi, LED, Keypad Lights, USB Mass Storage
Froyo Default Theme, FRG33
UserData adjustable. Just make the changes in startup.txt before first boot! Will take some time on first boot due to size of data image being created.
choose from different zImages. Just make the changes in startup.txt to choose between MichyPrima's R11 AXI, NOAXI, and EVO.
Need to Test:
Not sure - Bluetooth (someone has to test since I have no BT headset to test with)
Again, I'm releasing this since I use it. Use if you want to at your own risk (don't worry it won't brick your phone)
I'm using this build with ChuckyDroid Rom (with FD DriodBoot cooked in) and radio 2.12.50 without any issues.
NOTE:
Thanks to all those who have donated. If you want me to put your name here, please PM me and with the paypal code.
louie317, ktran1588, partie, bler, Uglymittens, and others whom I don't know their userids yet so i can't post here
-----------
If you're feeling generous feel free to donate
Latest Version Download: 1.5 Uploaded 10.09.2010
DOWNLOAD HERE VIA MULTIUPLOAD (1.5)
NETWORK SWITCHER SCRIPT (switch between RMNET and PPP script for GScript)
Download this and extract to gscript folder in the root of the sdcard (outside of Android folder!). Then go to GScript and load the script. This file is already in V1.4 download.
Warning! Read everything before you make any modifications to the files.
#be careful when editing the settings.
set cmdline "rel_path=Android data_size=2048 lcd_res=180 conn_type=ppp kernel_type=axi gps_zone=us"
boot
AVAILABLE OPTIONS FOR STARTUP.TXT:
# conn_type: ppp,rmnet
# kernel_type: axi, noaxi, evo, custom
# gps_zone: us, europe, etc (pls check your zone based on pool.ntp.org
# lcd_res: any variable from 140 to 240, my default is 180, Froyo default is 240
# data_size: 2048 for 2GB, 1024 for 1GB, 512 for 512MB
# rel_path: Android. Be careful when changing this. this is the android folder in the sdcard
If you are having issues booting, try editing startup.txt and change set cmdline "rel_path=Android data_size=2048 lcd_res=180 conn_type=ppp kernel_type=axi gps_zone=us" to "set cmdline rel_path=Android data_size=2048 lcd_res=180 conn_type=ppp kernel_type=axi gps_zone=us loop_partition=mmcblk0""
Instructions on setting Data Image Size, setting DPI resolution, changing between PPP/RMNET, changing GPS ZONE, using AXI/NOAXI/EVO or your own zImage:
Before running Android for the first time (or if you want to change the data image, then just delete your existing data.img file), edit startup.txt and look for the line
set cmdline "rel_path=Android data_size=2048 lcd_res=180 conn_type=ppp kernel_type=axi gps_zone=us"
Change that line to adjust your desired data image size, screen resolution, and to switch between RMNET/PPP.
How to change Data Image:
change this: data_size=2048
2048 = 2GB, 1024 = 1GB, 512 = 512MB
Example. to have 1GB image size set it to 1024, for 2GB set it to 2048. 512MB put 512. Default is set to 512.
Change Screen Resolution:
To change the DPI easily via startup.txt, edit the variable that says dpi_res = 180 and change it according to your preference. Set it to 240 to have default resolution.
To switch between PPP/RMNET:
To switch between RMNET and PPP, change this variable, conn_type=ppp in startup.txt. Options are ppp and rmnet. You don't have to replace any file or anything, just this variable
Note: In PPP mode, WIFI router needs to run a script to fix the iptables (thanks Warrenb). In the Android folder, there is a file, ppp_wifi_router.sh. You need to run that everytime you activate WIFI Router. You can run it two ways:
1. Open the file in terminal.
2. Copy the contents of that file to G-Scripts so it's one click from Home screen
WARNING! If you are switching zImages, make sure that the zImage supports both RMNET and PPP if you want both. IF NOT, then MAKE SURE that the setting in startup.txt is the same! Example: Evo based kernels are PPP only, so makesure startup.txt says ppp.
To switch between AXI, NOAXI, and uploading your own zImge READ THIS!!
In startup.txt look at this line:
set cmdline "rel_path=Android data_size=2048 lcd_res=180 conn_type=ppp kernel_type=axi gps_zone=us"
the kernel_type=axi specifies to dynamically load the AXI kernel. If this does not work for you, change axi to noaxi. then reboot.
If you want to use your own zImage, change axi to custom, then upload your own zImage into the Android folder. Also upload the equivalent modules with it. If you do not set this to custom, whatever zImage you copy to the Android folder will be replaced.
Also I included Power Control Plus by accident. It is a paid app and will not run without license. Either buy the license in market or just uninstall it.
To Set GPS ZONE:
In startup.txt:
set cmdline "rel_path=Android data_size=2048 lcd_res=180 conn_type=ppp kernel_type=axi gps_zone=us"
Change the part that says gps_zone=us. If it's europe, change it to europe. It can be anything before the xxxxxx.pool.ntp.org. US is us.pool.ntp.org (hence I put "us"). For europe it europe.pool.ntp.org (hence I put "europe"), and so forth....
Refer to pool.ntp.org for this.
For those having Issues Sending MMS:
Adjust the APN settings (below is for TMO US) Leave the other fields the way they are and only change these fields!
Name: T-Mobile US
APN: epc.tmobile.com
Proxy: 216.155.165.050
Port: 8080
Username: (leave this blank)
Password: (leave this blank)
Server: (leave this blank)
MMSC: http://mms.msg.english.t-mobile.com/mms/wapenc
MMS Proxy: 216.155.165.50
MMS Port: 8080
MMS Protocol: WAP 2.0 (if you have this)
MCC: 310
MNC: 260
APN Type: default,supl,mms
If you have a different carrier, boot into WINMO and get the APN settings for MMS, then plug them into your Andoird Settings.
Please go through this Checklist:
1. Format SDCARD, NOT Quick Format but Full Format, use 32K block size (THIS IS VERY IMPORTANT)
2. Switch to Chuckydroid Rom
3. Switch to 2.10.50_26 radio (especially if using TMO USA)
4. Re-download the build
5. Do not change the settings of startup.txt and boot it (for testing purposes as that default setting is what I use I have no issues whatsoever)
6. download setcpu and set for Interactive Governor
7. Go to Spare Parts and speed up transitions, and disable compatibility mode
8. For those having Issues Sending MMS adjust APN settings and use settings above for TMO US. If you have a different carrier, boot into WINMO and get the APN settings for MMS, then plug them into your Andoird Settings.
If something still is wrong after this I'll be puzzled myself.....
I was just able to use GPS, Wifi Tethering, Phone Call, send a 5MB email all at the same time while going home from Philadelphia yesterday. Search this thread for the word Sonic to see that post.)
Changelog:
V1.5
- Further changes to rootfs
- updated to latest Nightly
- fixed minor bugs
V1.4
- Totally reworked rootfs.img script on how startup options are handled. Should be working better than 1.3 and 1.3a
- Added option to choose EVO zImage via startup.txt
- updated to latest Nightly
- fixed some bugs (wallpaper, etc)
- more changes
V1.3a patch
- reworked script how startup.txt is processed.
V1.3a
- Re-Added LauncherPro (latest version)
- Updated ADW Launcher to latest
- Installed BRUT Maps
- modification in startup.txt
- GPS Zone now configured via startup.txt
- Included both AXI and NON AXI kernel from MichyPrima. To switch, easily change from startup.txt.
- replaced led light driver for battery issues
- some minor stuff...
V1.3
- fixed Bluetooth. Now it does data transfer between a MAc/PC and the HD2. For BT calls, someone has to check and confirm, since I don't have any BT headset (If you want, donate so I can buy one)
- Modified startup. Now takes in variables for screen resolution, data image size, and RMNET/PPP
- Easily switch between RMNET/PPP without replacing any files... just edit startup.txt then reboot.
- Uses MichyPrima's R11 Normal Kernel with both AXI/NOAXI
- some minor fixes for stability and speed
NOTE: I tried installing brut maps but didn't get to test it. I'll fix this soon for 1.3A
V1.2a
- fixed browser related issue (broswer FC, Facebook, Zedge)
- fixed wifi router bug
V1.2
- CM6 Nightly FRG33 (9/5/2010 buiid)
- Improved performance, speed, and stability
- Adjusted some widget to 35% transparency (News and Weather)
- Bluetooth update (please confirm since I don't have any BT devices)
V1.1
- Fixed GPS
- Minor changes on default apps
- Superuser updated to latest version
- removed Amazon MP3 app from default
- Bluetooth update (please confirm since I don't have any BT devices)
V1.00
Initial Non RC Release
RC 1.1
Camera fix
RC 1.0
Build preview for beta testing
Yupppiieee..!!!
Thanks..!!!
Link please for "Download"..!!!
Cant wait to beta test ......you might want to put a donate to paypal link in your sig
bangsters said:
Download here:
MEGAUPLOAD: http://www.megaupload.com/?d=WO6TH14M
Click to expand...
Click to collapse
Downloadin now..!!!
Will keep you updated..!!!
Thanks, really appreciate your hard work & also of all the other DEV's on XDA..!!!
XDA rocks & you are the 1's responsible..!!
thx bro. downloading now.
also i second adding the donation link. i cant figure out how to make my own roms, so hey why not send a beer your way.
/cheers
i need a 1gb data file. can you post a fix for that.
edit1: dont forget for bootup issues add:
set cmdline "rel_path=Android loop_partition=mmcblk0"
edit2: data on att connects but does not function at all (this is in edge mode) during the intial setup wizard. otherwise so far only the edge icon doesn't not animate.
songokussm said:
thx bro. downloading now.
also i second adding the donation link. i cant figure out how to make my own roms, so hey why not send a beer your way.
/cheers
i need a 1gb data file. can you post a fix for that.
Click to expand...
Click to collapse
i'll post the 1GB file and other upgrades, and mirrors later.... jsut tried to do this as soon as possible so you guys can get it.
i'll polish the build later.... reuploading....
i think guys we became leo android addictors its 6 am here in lebanon and im refreshing android development thread regularly to catch any new work downloading now for testing thanks Bangsters for the hard work you rock
Thanx a lot bangster will report back after test.
thx working good
just change with that in statup.txt
set cmdline "rel_path=Android loop_partition=mmcblk0"
Can you post what's working and what's not please and I will donation also
I am wondering about this rom. No idea what it is, and do leds work?
wawa144st said:
Can you post what's working and what's not please and I will donation also
Click to expand...
Click to collapse
the whats working stuff is in the readme when u download the file.
itsedstech said:
the whats working stuff is in the readme when u download the file.
Click to expand...
Click to collapse
Thanks but I'm not home yet just was wondering what's working and what's not that's usually what they post when they post a build that's why
wawa144st said:
Thanks but I'm not home yet just was wondering what's working and what's not that's usually what they post when they post a build that's why
Click to expand...
Click to collapse
oh sorry well heres what the readme says
Whats working:
- Wifi
- GPS
- 3G
- Camera with flash
- Bluetooth
- Everything thats working on other builds
itsedstech said:
the whats working stuff is in the readme when u download the file.
Click to expand...
Click to collapse
itsedstech said:
oh sorry well heres what the readme says
Whats working:
- Wifi
- GPS
- 3G
- Camera with flash
- Bluetooth
- Everything thats working on other builds
Click to expand...
Click to collapse
Thanks alot and what's not please
itsedstech said:
- Everything thats working on other builds
Click to expand...
Click to collapse
they all say that but then i try a new one and leds arent working.
Booting now! Looks sweet with the higher res
Randy Couture just wooped the floor with Tony lol.... 1st round TKO.....
now waiting for main fight with BJ Penn... then off to more changes on the build
Please be patient. this is the best I can come up with in 2+ hours.
Flashed Looks AAAAaaaAAwwwwEEeSSSoooMMeeee..!!!l
Thanks a lot once again..!!!
Even a good QUAD score, I got 1389..!!!
Screen shots anyone?
Maybe I'm missing something, but how is the dpi higher than other roms? Isn't that a hardware restriction based on the screen?

[CLOSED]CyanogenMod 7 "Galaxy5" Port

PLEASE NOTE: This topic is outdated. I am not maintaining the 7.0.x port - please upgrade to the latest 7.1 version here. Mods, please lock this thread.
Cyanogen 7.0.3 (Android 2.3.3)
Current version: galaxy5-v3.41 - 4/June/2011
Video Reviews: Russian, Brazilian Portuguese 1, 2, 3 (thanks to the uploaders)
Threads: XDA
Hey folks,
This is a port of Cyanogen 7.0.3 (based on the stable Android Gingerbread 2.3.3 release) for the Samsung Galaxy 5 I5500 (Europa) phone. The current port status is beta - most functions work, but it may not be suitable for everyday use, unless you can live without the missing features (see errata below). If you have programming experience, any assistance in resolving the remaining issues will be much appreciated. See the working features and "errata" listed below for more information.
Special thanks to Motafoca for starting Cyanogen development, and for his constant assistance.
WARNING!
* READ THE ERRATA BEFORE ASKING QUESTIONS OR USING THIS ROM. The most important entries are written in red.
* If you fail to read the errata (and ask silly questions that are already answered), I will personally find out where you live and hunt you down.
* This is beta-quality software, and some functions are still not available compared to the Froyo builds!
Instructions:
1. Download the latest release, and extract the .tar file from the .7z/.rar archive (using WinRAR or 7zip).
2. Flash .tar file in Odin with One Package option - do NOT select any other options (such as debug).
3a. If upgrading from Eclair or Froyo (any version), you must data-wipe.
3b. If you are upgrading from an older Cyanogen version, read the changelog for the newest release if you need to data wipe.
3c. If you are flashing a hotfix, you must flash it after flashing the full release. Data wiping is not necessary for hotfixes.
4. When the Google Setup Wizard appears, I recommend that you leave the phone idle for a minute or so. Applications are still installing in the background, and completing the wizard early may cause some icons (such as Market) to go missing. If you were impatient, and some icons are missing, install Titanium Backup and use the "unfreeze" feature.
5. Optional: during Google account setup, you may want to disable the backup feature of Google Apps. Some users have reported that it causes lag (which will be investigated).
6. Optional, but highly recommended. Upgrade your baseband to the version recommended for your region. This is explained in the next section.
Baseband
The baseband (also known as the MODEM/AMSS) deals with telephony, mobile networking (3G/GPRS) and GPS. Unlike Froyo, Cyanogen is sensitive to the baseband version you have installed, and some functions do not work properly (most notably GPS) when using older basebands. For that reason, I recommended that you upgrade your baseband to the latest version when using Cyanogen. Follow the steps below:
1. Make sure you have a working backup of your phone's official AMSS (in case you have problems). There is no way to backup the AMSS from a running phone, so you must have a full copy of an official ROM. You really should have a backup of your official ROM, as you will need to flash it before sending the phone for warranty repair (for whatever reason). Refer to this guide for more details on how to acquire a backup of your official ROM: http://androidforums.com/samsung-galaxy-europa-5/321656-manual-device-cant-updated-workaround.html
2. Go to Settings -> About phone -> Baseband version. If your baseband version is already the same version as you intend to flash (in step 3a or 3b), then stop here. You don't need to do anything else.
3a. For Europeans, download the I5500XWJP4 baseband.
bb. For the Americas and & rest of the world, download the I5500LUYJPE baseband.
4. When you have downloaded the appropriate baseband for your region (and you are sure that it needs to be upgraded), simply flash the .tar file in Odin with the One Package option. Data-wiping is not necessary.
5. Once your baseband is flashed and your phone has rebooted, go to Settings -> About phone -> Baseband version, and verify that it is now the correct version.
6. Note: you only need to flash the baseband once. Flashing Cyanogen itself will not change the baseband. If you flash an official Froyo ROM that was downloaded from Kies or SamFirmware, your baseband will be changed to the version that was included in the ROM package.
Release list/changelog:
* v3.41 - includes v3.4+hotfix2 changes; improved default kernel settings for stability and performance (tested by ghusdark, reported to fully solve wakeup problems); tweaked cache settings; added mpeg4 to list of working codecs (but the rest are still not working). Data-wipe will not be necessary, but you should disable app2sd before upgrading if you are using a release older than 3.4hotfix2.
* v3.4 + hotfix2 - 2/June/2011 - removed old patches from kernel (were causing system instability, such as framework restarts when first connecting to wifi or batch restoring apps in Titanium Backup); updated kernel source against I5503 2.2.1 source code; removed Titanium Backup from default install (as it was conflicting with the Pro/Donate version); fixed audio issues such as headphones not being detected during call / microphone not working during speakerphone call; fixed issue where Market cannot download large apps; FM Radio app will be installed (despite it still not working) in case people want to try and make it work somehow. Hotfix2 enhances app2sd. It now keeps /data/data in the phone's internal storage, which prevents lag and slow download speeds. You must use ADB to enable/disable app2sd, and if you already have app2sd active, you must data-wipe after installing hotfix2 (even if you installed the previous hotfix1).
* v3.31 - 31/May/2011 - improved Bluetooth reliability (now less likely to fail during initialization). Data-wipe is highly recommended if you are upgrading from 3.2 or lower. You can skip this version if you don't care about Bluetooth.
* v3.3 - 31/May/2011 - fixed bug where phone would not wake from sleep; fixed reboot when disabling Bluetooth; changed wifi sleep policy back to defaults; fixed wifi reconnection problem when waking from sleep; converted system filesystem to EXT4; removed galaxy5_defaults script (it was causing Market and some other icons to sometimes disappear); removed need for 1 minute freeze & bootloop on every flash; added more preloaded apps: Street View for Google Maps, Blade Wifi Fix, Titanium Backup. A data-wipe is highly recommended for this version.
* v3.2 - 30/May/2011 - fixed wrong microphone problem (again); enabled H264 codec (DIVX and MP4 videos don't work yet, but HQ Youtube video now works); improved galaxy5_defaults script (will no longer cause Market or other icons to disappear after data-wipe); preloaded more apps (Gmail, Youtube, Maps & AdFree Android); changed readahead values (to help prevent lag, especially for app2sd users); now uses Froyo 2.2.1 (JPE) proprietary files; changed kernel config (potential fix for phone not waking from standby - please test). Data-wipe is not necessary but recommended if you have problems.
* v3.1 - 28/May/2011 - decreased Davlik VM size to 16m, set proper minimum CPU frequency/CPU scheduler settings (to hopefully fix unresponsive phone when left overnight); reduced audio latency (fixes ringtones). This version is highly recommended. Data-wipe not necessary if upgrading from 2.992+, but recommended.
* v3.0 - 28/May/2011 - removed "test" from build name. Fixed touchscreen sensitivity (regressed in 2.994). Increased audio driver latency (fixes audio lag - games will now run 100% smooth). Fixed one other bug, not worth mentioning [edit: it was the reboot on first incoming call bug ]... So tired. Gotta sleep.
* test2.994 + hotfix1 - 27/May/2011 - script fixes/enhancements: 1) get_macaddrs - no longer blocks the system_server on each boot; 2) galaxy5_defaults - runs more efficiently (which means that first boot after a flash will not be delayed as much); 3) madteam_app2sd - several fixes, including a more efficient transfer procedure, and will now set the writeback journalling flag for partitions properly; 4) 04galaxy5 - readahead speed tweaks are now different between STL and MMC devices. Slightly modified microphone fix in libaudio so that it initializes the microphone only when an input device is requested (to hopefully prevent some audio lag). Recompiled entire framework with different TARGET_CPU_ABI (was armeabi-v6l, now armeabi - this appears to reduce system lagging). Removed (currently useless) FM app + some orphaned .odex files. Tweaked keyboard size. Tweaked ADWLauncher to reduce battery usage and help avoid accidental widget removal. Summary: several bug + lag fixes = better performance and reliability. Update to this version is recommended. Data-wipe not necessary, but recommended. Hotfix1 (thanks to Motafoca/npmap) includes a new kernel with several patches to EXT4, bugfixes and a new Simple IO scheduler (optimized for flash devices).
* test2.993fix4 - 25/May/2011 - completely fixed reboot hangs (when turning off or rebooting phone); potentially fixed VPN support; tweaked touchscreen (should be more responsive at edges - please test); fixed various boot loop problems related to app2sd; fixed lockscreen widget (no longer obscures caller); reduced keyboard size; added Live Wallpapers; added USB tether option (not yet working); improved app2sd/caching to fix lag issue; updated kernel (new performance tweaks + TUN module added for VPN support). Data wipe is required if upgrading from 2.991 or older. If you have enabled app2sd in version 2.992, please see errata step 2d.
* test2.992 - 22/May/2011 - now based on Cyanogen 7.0.3 (stable version based on Android 2.3.3 - hopefully less bugs for us!). Fixed problem with missing Market icon; improved delay during first boot; upgraded audio driver (slightly less lag); added swap support / new app2sd implementation (see errata). Data wipe is required in all cases.
* test2.991fixed - 16/May/2011 - fixed Bluetooth & WiFi MAC on first boot, improved scripts so that data wipe should no longer be necessary when upgrading between Cyanogen versions; fixed WiFi disconnection problem; partially fixed the problem of the lockscreen hiding the incoming caller's name; enhanced status bar icons (now uses: Wifi / Mobile Data / Bluetooth / Brightness / Sound / Orientation). This ROM should now be considered BETA quality. NOTE: There was a slight problem with a script, so I reuploaded the fixed version. You may need to re-download and flash again.
* test2.99 - 16/May/2011 - updated Cyanogen source; TELEPATHY NO LONGER REQUIRED -> for those who missed the joke, the microphone problems is fixed, so you don't need to practice telepathy with your friends while making calls
* test2.98 + test2.98 hotfix3- 15/May/2011 - updated Cyanogen source; tweaked settings to keep launcher in memory and allow purging of unused assets (this should greatly reduce lag and improve multitasking); more improvements to boot scripts; Bluetooth now uses proper MAC address (see errata); tweaked cache settings for disks; changed GPS libraries (it should now connect to satellites a bit faster). Hotfix3 fixes Bluetooth speed.
* test2.97 + 2.97 hotfix - 13/May/2011 - updated Cyanogen source; improved 2D performance; fixed slow WiFi connection on first boot; fixed WiFi tethering; fixed 3G/WiFi DNS (now uses DNS address from your APN/access point instead of forcing Google's DNS servers); added "Download" mode to list of reboot options (helpful for your once-a-day reflashing ); reverted to stable Google Apps version (because newer version still has problems); improved boot scripts (cleaner + faster boot); updated kernel (the beginning of some performance tweaks). The hotfix will fix some sound-related lagging caused by a bad kernel configuration.
* test2.96 + 2.96 hotfix - 11/May/2011 / 12/May/2011 (hotfix) - updated Cyanogen source; fixed WiFi signal, mac address & slow DHCP resolution; improved boot scripts; phone will now power off/restart faster (and will also no longer crash during these periods); phone seems to stay cooler (possible battery savings?); moved download cache to data partition (so you can install large apps from the Market, such as Angry Birds Seasons).
* test2.95 - 06/May/2011 - updated Cyanogen source; improved boot scripts so that Bluetooth is initialized properly; updated Google Apps (Talk should be voice-enabled, but hasn't been tested)
* test2.94 - 06/May/2011 - now using open source lights library; fixed USB Mass Storage; fixed headphones; removed unnecessary Cyanogen statistics and update apps; tweaked cache settings
* test2.93 - 03/May/2011 - now based on lge_thunderg code; fixed camera & video recorder; Broke USB Mass Storage and headphones.
* test2.92 - 01/May/2011 - rebuilt against first Cyanogen 7.1.0 (Gingerbread 2.3.4_r1) code merges, fixed WiFi for new version of Gingerbread; Broke USB Mass Storage.
* test2.91 - 30/Apr/2011 - converted system to ext4 (more speed + stability), new kernel (improves performance), fixed regular headphones (thanks to Ronison & Motafoca for patch), fixed wifi disconnections (hopefully), added Google Setup Wizard (no longer crashes), removed RomManager (we can't use it yet), battery life improvements
* test2.9 - 28/Apr/2011 - fixed app crashes (Angry Birds/FPSE, etc.), fully rooted, Phone dialer now locks during call, Market can now sign into Google account, tweak to prevent possible bootlooping problem. Thanks to Motafoca for discovering the crashing problem!
* test2.8 - 27/Apr/2011 - fixed: USB Mass Storage, brightness controls, battery usage, misc telephony bugs, SD/internal drive access speed
* test2.7 - 25/Apr/2011 - fixed 3G, Bluetooth (partial), ADWLauncher scrolling speed (fixed permissions)
* test2.6 - 24/Apr/2011 - fixed lcd density (now 120); added low dpi resources to fix various graphical problems (such as lock widget, boot animation, overlapping widgets, badly sized icons); added FM Radio app (but hardware is not yet working).
* test2.5 - 23/Apr/2011 - first release.
Working:
* GPS [1]
* WiFi
* WiFi tethering
* 3G
* Brightness controls
* Video
* Audio (recording and playback)
* Touchscreen (no multitouch, don't ask because I'm not working on it)
* Root
* Camera (and video recorder)
* Microphone
* SIM Contacts
* MAD Team App2SD [2]
* Swap [3]
* Telephony
* Sensors [4]
Partially working:
* Bluetooth [5]
* SIM Toolkit
* Battery [6]
* Hardware encoders/decoders (H264/MP3 working, others not).
Not working/unknown:
* USB tethering - we need a newer kernel, or backported kernel patches.
* FM Radio
* Kies - note: you should never expect a custom rom to work with Kies - Cyanogen or otherwise. You can always downgrade to an official ROM to restore Kies compatibility.
Errata:
[1] GPS does not work with the newest Americas baseband ending in JP9. Check your version at Settings -> About phone -> Baseband. If you have the new baseband, you should downgrade to the JP2 baseband to get GPS (and possibly also 3G) working correctly. GPS is confirmed to work correctly on all European basebands (so far).
[2a] This rom uses a custom app2sd script that I wrote, called madteam_app2sd (based on Motafoca's idea). All folders are put on the SD card, but to prevent lag, the EXT4 partition on the SD card uses a separate journalling device (stl14, which is usually configured as the /cache drive). The phone's original /data partition (stl13) is then reconfigured as the new /cache drive. Additionally, all drives are configured to use EXT4 writeback journalling, which improves performance.
[2b] App2SD is disabled by default. To enable, run madteam_app2sd on from an ADB shell. When you run the command, your phone will freeze for a few minutes and then reboot.
[2c] Toggling app2sd on or off will *not* cause data-loss - all your data is transferred normally. The script also does a free-disk space check on the source/destination drives, and will refuse to change the configuration if there is not enough space available to complete the requested action.
[3] Swap is disabled by default. Run madteam_app2sd swapon or madteam_app2sd swapoff to enable/disable. Changes will be permanent (i.e., swap will be activated/deactivated on every reboot).
[4a] Although the sensors work fine, the sensor daemon is draining a lot of battery. With sensors enabled, the phone generates between 800-1000 wakeups per 15 seconds; for comparison, other phones do around 50-100 wakeups per 15 seconds with sensors enabled. More wakeups = more battery used, so this is not good.
[4b] With the sensors turned off, the phone does just 70-80 wakeups per 15 seconds. If you wish to conserve battery, therefore, you may wish to disable sensors whenever possible. The sensor toggle icon is the furthest on the right in the drop-down notification bar.
[4c] Thanks to testing by LoopMind, we now know that Froyo has the same problem with high wakeups as Gingerbread, so this is not a problem with my port.
[5] Bluetooth has two issues:
[5a] Sometimes Bluetooth will refuse to turn on. This is because of a timing conflict when trying to insert the patched firmware into memory. This problem happens with other Samsung phones, and currently the only known workaround is to reboot your phone and try again. You will have more success enabling Bluetooth if you try when there are no CPU hogging processes running in the background.
[5b] Bluetooth pairing works perfectly, but file transfers do not work properly. In my own testing between my phone and laptop (via a Bluetooth dongle), I noticed that file transfers will only work when the phone is set as discoverable, and the file transfer is initiated within the discoverable timeout.
[6] Battery usage is higher than Froyo. Although sensors are a large part of the problem, it is not the only cause. We are investigating.
Source:
Available here: https://github.com/p...samsung_galaxy5
great firmware.
Yu really made it... NW ram use less... speed also boosted.... wowed I love dis 2.991
Galaxy 5 Subpsyke Cyanogen 7
myshu said:
great firmware.
Click to expand...
Click to collapse
Yea Yu r ryt!! NW dis one is d perfect 1 hmm
Galaxy 5 Subpsyke Cyanogen 7
thx a lot!!!!
I think it would be better if the changelogs added here..
But download link posted only on madteam's forum..
Sent from my Nobu5 using XDA Premium App
Currently using the cy7 test 2.991 on my device! Such an incredible ROM !!
Sent from my Galaxy5 using XDA Premium App
Gonna have a look at it, anyone can post a screen of his home screen to see if there's changes.. Thanks !
Khalil. said:
Gonna have a look at it, anyone can post a screen of his home screen to see if there's changes.. Thanks !
Click to expand...
Click to collapse
This port should look identical to any Cyanogen port (aside from the different screen resolution). The first post has some videos.
I tested it and it's great!
i am now back to froyo because i couldn't backup my contacts via kies...
is there any app to do that? and also the calendar maybe?
if i could do that i would go back to cyanogen 7 i guess
now a few point:
- the keyboard; ist to big in portret mode so you can only see 1/3 of the screen
- the radio doesn't work
- nothing else
so great work but you have to fix some things like the phonecall bug...
Sent from my Galaxy5 using XDA Premium App (Froyo)
EDIT:
i am now back to cyangen 7
i used phone backup 2 for my contacts...
and i also tried a full benchmark with quadrant and my score is: 863! (froyo is like 500) that higher than the GS
subpsyke said:
This port should look identical to any Cyanogen port (aside from the different screen resolution). The first post has some videos.
Click to expand...
Click to collapse
Best rom! Only a few minor bugs
Dis is a best rom... Bt i dint test the rom 2.992 waitun for stable release....
Sent from my GT-I5500 using XDA Premium App
suuper ROM...
thank you sub and MadTeam
How much partirion i sud uSe....???
Sent from my GT-I5500 using XDA Premium App
i am testing it....
conclusion:
- radio still doesn't work
- pick up a call doesnt work (not touchscreen not buttons)
- some apps doesn't work (easymoney)
- it is a bit laggy
just to let you know
i am testing it....
conclusion:
- radio still doesn't work
- pick up a call doesnt work (not touchscreen not buttons)
- some apps doesn't work (easymoney)
- it is a bit laggy
just to let you know
Click to expand...
Click to collapse
The rom 2.99 was awesummm..... There was noo lag n enuf space ram upto to 115.... I removd all unwanted software cyanogen7 n d system went awesummm.....
Sent from my GT-I5500 using XDA Premium App
2.993 is out now!
look: http://www.madteam.co/forum/index.php?/topic/460-testing-cyanogen-7-galaxy5-port/
Cool
Sent from my Galaxy5 using XDA Premium App
Hey Guyss.... download the best ROM. released today 2.993 fixed.... its awesum....
Sent from my Galaxy5 cyanogen7 using XDA Premium
Link to 2.993fix says temporarily not available

Add Advanced Routing into Kernel. .config options?

Hi.
I already compiled an Android kernel and added Compcache.
Unfortunately my kernel does not have the Advanced Routing Feature - at least VPNC Widget reports this and the connection is always lost after a few minutes.
VPNC Widget says this happenes when the DHCP is being updated (?)
Can you tell me how to add this?
Which configurations are necessesary in .config?

[DONE, v1.1 source] linboothkvc - minimal strangely kexec with out kexec ;-)

>>>> 24Jan2012_2155 - linboothkvc v1.1 source - does a bit more thorough job with Cache flushing for the corner cases where the new guy in the Nirvana environment doesn't do a thorough job of cache invalidation. Now have added the source to this post itself (cas, it is pretty much done now, except for any forgotten corner cases, and also one pass at removing all dependence on hidden kernel functions which I shamelessly depend on - rather it is only setup_mm and cache flush walking, others (on 2nd thought rather all) are trivial to replace but have left it there just from a future proofing perspective). However the details or blah blahs are in the newer posts towards the end of the thread. <<<<
>>>> 22Jan2012_1430 - linboothkvc v1.0 source with working binary kernel module for Nook Tablet released - look towards end (may be page 2) for the source - As you would already know, it can also work with any rooted arm based linux device provided it is recompiled for the given linux kernel on that device along with updated kernel function addresses in lbhkvc_k.c and appropriate Nirvana (some minimal change, if required) and NChild code (ie the bootloader you love for your device) <<<<
>>>> 22Jan2012_0058 - I have uploaded the source for a working linboothkvc for Omap3/Omap4/Arm_Cortex_A SOC based devices. As far as linboothkvc is concerned, it works on NookTab also successfully. However there is some effort/love still required wrt the NChild or bootloader used from with in the Nirvana environment ;-) <<<<
>>>> 17Jan2012_2325 - FINALLY SUCCESS on NookTab also ALSO Note that the POWER of KERNEL Modules and linboothkvc in turn is well beyond NookTab for the adventurers ... ;-) <<<<
>>>> 16Jan2012_2326 - Beta version of code posted towards the end, Now it fully runs on BeagleXM Hw - with minimal love should run on NookTab also, so enjoy <<<<
>>>> 15Jan2012_0251 - Alpha version of source code in post towards end, fully runs in Qemu for now ;-). And the difference between this cup and the lip (i.e actual h/w) being the missing proper cache handling from my side <<<<
Hi All,
Before my ideas with init hijack, and uboot hijack, I had a idea with trying to implement a kernel module to allow execution of any code, after killing linux without a full reboot (which would give control back to secure boot). However 2ndihkvc and NOPBypass came in between this.
However I will try and put sometime into it, as and when possible. I have some work coming up over the next few days, so going will be bit slow compared to my other two threads, but if nothing turns up from BN side (what I heard from Adamoutler on the other thread) wrt open ended bootloader then I will spend bit time on this.
Note that one doesn't require kexec to achieve functionality similar to kexec ;-). Linux kernel modules is a very powerfull mechanism which we have in our hand to give lot of or all the control required (Unless linux has changed drastically over the last few years, when I have been away from it, but that seems less likely, even thou I have heard and discussed some ideas which curtail this power almost a decade back, but I don't think it has materialised yet, which should be good for the situation we are in, and hope it remains like that for the forseeable future, what with all these close minded companies and closed devices these days).
NOTE: Look to the newer posts below for the Source Codes. RC1 source code in a day or two (but has mentioned, no significant changes wrt Beta
[REPOST] MAYBE Exec_Anycode instead of kexec
>>>> This was my old post on bypass bootloader ideas thread, put here for completeness <<<<
*** MAY BE A POSSIBLE EXEC_ANYCODE logic instead of KEXEC***
NOTE: KEXEC tries to run another linux kernel, so may be its logic is more complicated, than if we are trying to run just any code in kernel or better privilage level. I haven't looked into kexec as of now, so I am only guessing about kexec complexity, beyond what I have mentioned below for my method (which again I haven't tried as of now, just a idea).
If one is trying to run something from memory when already in Linux, then one also has to worry about the privilage level at which the processor is running, as well as about page table mapping etc... If the other thing which we are trying to run is another kernel or x-loader or uboot or another bootloader for that matter.
So if kexec doesn't work, may be there is another option available which is to
a) Create a kernel module (NOTE: It runs with same privilages as the kernel) which does
a.1) Disable interrupts so that control doesn't get out of our code
a.2) Over write the reset vector with x-loader or what ever custom bootloader one wants to get control of.
a.3) Change the memory map to have a 1-to-1 map for the region where the code is currently running (or rather for the code which will be run in the next step) or overwrite a region which already has 1-to-1 map between Physical and Virtual addresses, with the code for the next steps. Go to next step.
a.4) Disable page tables (I haven't tried this before, ie after it has already been enabled, but I don't see any reason why ARM doesn't allow this - except for things like what we are trying).
a.5) Change to the reset ARM privilage level (If a soft reset doesn't do it already, haven't looked at ARM at this level for ages, so don't remember)
a.6) Trigger a soft reset
This should give control to the bootloader which we have loaded into the reset vector address. (Rather we should trap all possible exceptions i.e all the 8 or 16 or what ever is the number of exception addresses in the exception vector).
NOTE: If we are not able to change back to the reset time privilage level for the ARM processor, then we should be still able to have a modified Linux kernel, which doesn't try to switch ARM privilages if not required - this I have tried, ages ago, If I am not wrong as part of some other activity I had done.
Current thoughts
Hi,
On thinking once again
a) We definately want to disable interrupts, so that we don't lose control other than for exceptions if at all.
b) We may have to stop the other processor if it is up in SMP, but I have noticed that most of the time, the other processor is shutdown in NookTab.(Have to think thro this bit more, later).
c) May be trap the TLB exception handler and inject custom pagetable till MMU is switched off (An idea for now, have to experiment a bit later). Rather than going thro the linux mmu code (am getting bit old, a decade back I would have done the required linux magic in few jiffies, but have been away from linux for too long now . OR force few entries into current/kernel linux memory map.
d) Copy
d.1) the core code required to manage stuff to a 1:1 mapped region.
d.2) Also the code required to jump to like (i.e the bootloader or what ever)
Other d.2) Or implement minimal code (as part of d.1) to read uart (oops - now that would have cut the complexity by 3/4th, but for people hating uart these days;-) or may be sd card and get a sector into memory (like x-loader).
e) Disable the mmu
f) Jump to the required code location of new universe
Today I did a quick running/jumping glance thro kexec code once, and even it does some what similar only, if I am not wrong, except for may be it not hijacking the TLB exception handler or having some junk for debugging or so ..., so I am not that off wrt the required idea.
First baby step - try and understand the default memory map
Hi,
Did try the 1st baby step towards this, by trying to go thro the running systems memory map.
LBHKVC driver v04Jan2012_2110
INFO: Total memory is iTotalMem 0x40000000
INFO: Page Size ??? PAGE_SHIFT 12 ie 4096
INFO: Begining of Platform ram PHYS_OFFSET 0x80000000(0x40000000)
INFO: End of userspace mapping TASK_SIZE 0xbf000000(0x7f000000)
INFO: Start address for Modules Space MODULES_VADDR 0xbf000000(0x7f000000)
INFO: End address for Modules Space MODULES_END 0xbfe00000(0x7fe00000)
INFO: Permanent kernal mappings PKMAP_BASE 0xbfe00000(0x7fe00000)
INFO: Kernel direct 1:1 map ??? platform RamBeg PAGE_OFFSET 0xc0000000(0x80000000)
INFO: Kernel direct 1:1 map ??? platform RamEnd high_memory 0xf0000000(0xb0000000)
INFO: vmalloc/ioremap space Begin VMALLOC_START 0xf0800000(0xb0800000)
INFO: vmalloc/ioremap space End VMALLOC_END 0xf8000000(0xb8000000)
Now one thing which is potentially true and easy is, the Physical Memory from 0x8000.0000 is 1:1 mapped to 0xc000.0000 in a linear way (Have to validate, but should be). There are certain virtual to physical maps which seem bit odd, most probably I am using the wrong function to do the conversion and or traversal of pagetable. Also some of them are not necessarily meant to have a mapping other than act has markers conceptually (Have to verify later).
Having something same to same mapped would have kept things to a minimal, and made this too trivial now - why not ooh linux gods ;-(. Now this is forcing some hijacking or forcing of page table entries or experimenting and seeing if this is good enough to me/any one else interested.
Also there seems to be something called SAR_RAM, have to see if this is of any use. As well as some of the regions reserved thro kernel command line and see if anyone is using it, or if it can be evicted if required, there are only for funny experimentations.
Otherwise I think, I should be able to get even my current modules virtual address translated to physical address and may be same-to-same mapped if required. Or forcefully take some region beyond my current running code and any exception logic I require.
Also I have to check how critical is the same-to-same map if any when switching off mmu, or is 1:1 map good enough, have been away from lowlevel arm also for too long now.
Wow hkvc you respond quicker then I do.
First off it is not a 1 to 1 mapping if you look at the arm B&Ndefconfig youll see that they utilize a different way of mapping (not looking at the code right now).
Second off kexec with the kernel module that does KEXEC_LOADED is essentially this. I would look at the kexec.c code, and you will see that you can comment out the sanity checks in the find hole function and it will find a valid hole, then with injection you could make this work. However, while i have done embedded design and some hacking, kernel modules are not my specialty. We need a high priority kernel module that removes interrupts, so that the kexec code can load.
baby step2 of linboothkvc
Hi Loglud/All,
Thanks for your inputs.
Not sure about ur (Loglud) 1:1 map part comment. Currenty when people say 1:1 I am not sure whether they mean linear map (i.e with a constant addition or substration you can get virtual - to - physical mapping and inturn the other way round) or same to same mapping, I have to look at arm initial booting code and see what they mean (and in turn what ARM requires), because they require this when booting and inturn the mmu gets enabled.
Also the code to dump the map what I put above, was my first attempt at kernel level view of memory maps after ages, so there are some FUNNY ;-) errors in the way I tried to dump it quick and dirty.
If you are talking about 0xC000.0000 (Virt) to 0x8000.0000 (Phys) mapping which I mentioned, I still feel it is linear mapping, but I have to verify once. Linux kernel used to maintain a linear mapped region to simplify the internal management of physical pages(i.e memory), so that they can convert from virt2phy and back easily wrt physical memory with out requiring to go thro pagetables and for other reasons (Obviously with limits, i.e the Full memory is not linearly mapped but the initial 800MB or 900MB or so used to be). I will verify it later.
Either way independent of that I have potentially found the region which I will be attacking wrt getting the required same-to-same mapping (which I want to use, even if linear map is good enough, which again I am not sure is true at this time). The VIRTUAL ADDRESS space set aside for kernel Modules in Linux (MODULES_VADDR (0xbf00.0000 ...) and MODULES_END) overlaps with the actual physical memory location (0x8000.0000 - 0xc000.0000) here. And there is enough free memory in this module virtual address space, as there are only 2 modules loaded in NookTab, plus the region is originally there to allow lot of modules plus worst case I don't really worry much about stomping_on/reusing someone elses used memory because I am going to kill the system shortly and I have already locked the current cpu by blocking interrupts.
Inturn I will initially see if there is a physical page in the physical address space from 0xbf00.0000 to MODULES_END such that I can do a direct same-to-same mapping into the corresponding Virtual address space. Again even if there is non, at one level I may not have to mind really ;-) as I will be nuking the full system shortly.
I am looking at same-to-same mapping to allow the code which will do the mmu disable to continue to work before and after mmu disabling. While a Linear mapped region is good to load the code (bootloader, kernel, ....), before mmu is switched off, which will be passed control after mmu has been disabled, and which inturn can welcome the new system.
NOTE: I am in this more for the fun of exploring, so at least initially I don't want to use kexec and modify it (If I fail, then I may look at using it directly, but don't see a reason to fail for now), rather I want to come up with a concept (and as you rightly mentioned, even kexec follows (and it definitely should) similar concept to a great extent except for may be some of the implementation steps, as end goals are similar) and then implement it for the fun of it, even in crazy ways if possible (I am just starting out on this now, so I dont want to say one way or the other on this aspect now) just for it
NOTE: I am explaining my thoughts, so if someone else is interested in experimenting parallely on his/her own, they can get some ideas (good or bad
BabyStep3 basic implementation done - but results say long fight ahead
Hi All,
Over yesterday and today, I have implemented a basic logic to test minimal kexec equivalent logic using kernel module.
Rather had to dig thro the kernel source code to
a) refresh thro my kernel basics and to understand atleast some of the changes in the newer kernel versions and MORE importantly
b) to OVER COME the tendency of core kernel developers to DISABLE EXPORT of some of the useful functions to external kernel modules.
Eitherway most of the disabled symbols I could pickup and hardcode the address in my code to still access them indirectly using function pointers - what would world be with out function pointers or rather pointers in general.
Also because of the SMP nature of the SOC, had to dig thro some of those stuffs also. Then for now decided to use some of the support mechanism already available within kernel to help with kexec logic like fin, reset, etc to try and see if I could use the easy path into it for now initially
However what I seem to have realised/found is that
a) Either these support routines haven't been fully implemented in the used kernel version on NookTab currently and or
b) I am missing few more additional steps wrt SMP (Have already killed the 2nd Processor using proper api in kernel - Have to cross check the CP15 to verify for sure once again later).
It seems to be mostly (a) and inturn related to cache cleanup and may be mmu switching, have to debug further.
Otherwise the same logic seems to be working in BeagleboardXM (rather within qemu -M beaglexm) except for some reason the uart messages seem to disappear once I switch over even thou the code seems to be running in the new Same-to-Same map with the physical memory address part, with proper UART address - checked using info registers in qemu (Have to debug this part of qemu related to how it decides which uart to show in Ctl-Alt-3 etc bit more and or try on a physical board sometime next week).
In few days time I will upload the code I have come up with (even thou useless from using/achieving kexec logic perspective currently, still may provide some ideas or act as a base platform for someone wanting to experiment, but having initial inertia , if I am not able to spend more time on it.
Initial Pre-Alpha source for linboothkvc kernel module and utils
Hi All,
As promised, I am uploading the initial version of the kernel module source code (with lot more updates compared to last weekend, when I mentioned about it) for achieving kexec like functionality even if kexec is disabled in kernel. As I always told, kernel modules are equivalent to kernel, so you can do what ever you want in kernel module that can be done in kernel, provided one is bit patient ;-).
Note: This is pre - alpha version of code for people with initial inertia/starting trouble to experiment. This has a known bug with cache handling which I have to fix as well as some restructuring and cleanup to do.
This will currently only run in Qemu, because it doesn't bother much with Cache. But on ACTUAL targets it will fail Randomly (there is a very very small one in a million chance that it can succeed if all the stars line up and the cache gods support you
This is no longer as critical for NookTab has it was 1 week back, because Now some people have already released a exploit which uses a uboot bug ;-(, which ideally we could have with held for a future product (because NookTab was already sufficiently open and didn't need any more exploits to use its full potential, as I had mentioned last week). But either way I realise that people are very impatient these days. And congrats to those people for their work however.
For people who want to experiment, the initial skeleton is available in this release
Alpha release with embedded x-loader for BeagleXM Qemu
Hi,
NOTE: This release successfully bootstraps a new linux from with in linux in Qemu, my yesterdays release would have also done the same, but would have required additional code to handle the final nitty grities, this is taken care of now in this release. So that it is easier for people wanting to experiment.
I have updated the kernel module to allow two images to be embedded into it.
a) The initial boot strap loader called Nirvana (Examples like bloop0.S, bloop1.S, ... and now a full fledged omap3callbootrom1.S for BeagleXM on Qemu - Rather it in itself is independent of Qemu-BeagleXm or Hw-BeagleXM)
and
b) The actual bootloader/???? to run in the new prestine environment called Nirvana's Child (NChild). Currenlty it is a version of the x-loader for BeagleXM (Either Qemu or Actual BeagleXM).
In turn once the kernel module is done with its job. It passes control to Nirvana. Also it passes the physical address and length of the NChild image to Nirvana thro r0 and r1.
The Nirvana code in turn can decide what it wants to do with the system. The default Nirvana code i.e omap3callbootrom1.S takes care of copying the NChild(by default x-load.bin) to 0x4020.0800 and then pass control to 0x4001.4000 so that it loads x-loader properly (ie setup stack for all modes etc).
NOTE: As of now it works on Qemu only. My earlier release yesterday would have just printed 1s on the screen, while this version actually boots into a new linux kernel + system in Qemu from with in a already running Linux system in qemu.
However it won't run outside Qemu successfully, as I haven't yet had time to look at fixing the cache issue, because I had to add support for NChild image logic either way for doing anything useful with the code.
NOTE: As this is either way no longer critical for NookTab, I will take a stab at it based on my hack-vs-life balance also. Depending on what and all come up over the next few days in life.
HOWEVER this latest release has the FULL REQUIRED INFRASTRUCTURE/LOGIC for running this on a actual h/w expect for the missing proper cache handling. It also includes a x-load.bin by default for BeagleXM which can be used either with Qemu-BeagleXm or Hw-BeagleXm.
Beta Source - Success on a Hardware (beaglexm for now) should work on NT also ...
Hi All,
I have finally identified the stupid cache issue which was frustrating me and eating my head for long and stalling this project unnecessarily . However it gave a nice oppurtunity for me to dig thro the kernel code as well as Arm documentations - which is what I am after either way So ALL IS WELL in the end
The problem was related to kernel's normal code using MVA based cache operations for flushing, which in the newer architectures stops mostly at L2 cache rather than hitting the memory. This is fine for Normal linux kernel operations because they don't disable cache and so the proper data will get used. But for us as we want to disable cache to give a true pristine NIRVANA environment, this doesn't work, as memory contains old/stale/wrong data. In our code flow This even affects the KERNEL MODULE CODE itself, leave alone Nirvana or NChild code.
Once I realised this by digging thro documents as well as seeing the strange behaviour (rather unbelieavble, initially for me) of my code(kernel module as well as Nirvana and NChild)/logic after cache disable, I was able to get it RUNNING SUCCESSFULLY on BeagleXM actual hardware and not the qemu emulation which I was previously using.
As of now it is restricted to Omap3/BeagleXM, because the Nirvana code Omap3callbootrom2 makes use of the bootrom memory map usage knowledge to setup NChild appropriately and pass control to it thro Bootrom (so that stack is setup for all modes). With small effort the same can be changed or updated for Omap4 and NT should be in the fold (Unless SMP creeps up, inspite of me shutting down the 2nd processor, for some crazy reason in the worst case ;-)
NOTE: Also my last release (alpha) for Qemu beagle had a bug which was a blessing in disguise, in that it was not disabling the MMU from with in kernel module(which I had added just for the heck of it and is actually not required). However it was still doing it once it hit Nirvana code, as required. If I had not done the mistake of using mrc instead of mcr with in my kernel module code, it would have failed immidiately, because BeagleXM has only 512MB ram and the kernel module code space is at virtual address 0xbf00.0000 or around it, which is WELL BEYOND the 512 MB of physical memory, so there would not have been any 1-to-1 memory map for it and disabling MMU would have made things go crazy. Note that Nirvana and NChild are kmalloced into linear mapped kernel address space which is with in physical memory limits normally ;-).
NOTE: May be there is a watchdog timer or coprocessor or so which I have to disable, haven't looked into this yet, which seems to mess things up, if I stay in Nirvana code for too long. However as by default there is no need to remain in Nirvana code for long, as it is required to pass control to NChild as quickly as possible, this is not a immidiate issue to worry about now.
Let the experimentations begin
For H/w BeagleXM boot, bypass stupid SMI based L2 Cache maintaince rot in uboot ;-)
Hi All,
If anyone has tried running my yesterdays Beta release on BeagleXM h/w there is one update and one other IMPORTANT things to keep in mind.
a) Update the omap3callbootrom2.S to directly call into NChild rather than thro BootRom, that call into BootRom is not required. i.e jump to 0x4020.0800 instead of 0x4001.4000 at the end.
NOTE: This also makes the code more generic and usable with minimal love across Beagle and NookTab.
b) In U-Boot remember to DISABLE/BYPASS the calls to ROM Support routines thro SMI to setup L2 cache as well as to invalidate cache. This is no longer required in newer Omap3 chips as well as there is actually few bugs in u-boot code itself related to this, as one wants to clear full cache but SMI rom routine only clears L2 (also the full cache walking for invalidate is there following the SMI call, so bypassing doesn't lose functionality), if I get rom code description in TRM correctly, plus few other bugs atleast in rowboat version. The files board.c and cache.S contain the calls to SMI which has to be bypassed.
I have attached the minimal patch required to uboot to allow it to work with linboothkvc with BeagleXM.
With the above two changes, linboothkvc will always succeed in BeagleXM, enjoy
NOTE: In my setup today, I have modified the NChild x-loader to load u-bootk.bin rather than u-boot.bin. Thus I can have both the Normal u-boot.bin for Normal booting and u-bootk.bin for linboothkvc based booting . My Beta release doesn't contain this modified x-loader NChild, the next release will contain the modified one. But with source of x-loader, you can do it yourself and copy over as NChild into linboothkvc
Success on nook tab
Hi All,
LinBootHKVC has successfully booted into Nirvana code in NookTab
NOTE: No major change required to my beta release other than one mentioned in my last post to make my released Nirvana code more generic and the address update in this post for NookTab.
As I had mentioned yesterday, even thou I hadn't got the time yesterday to check it on NookTab yet, it should work 90% except for any crazy SMP issues, inspite of me disabling the 2nd Processor. WELL IT turns out that what I had done already was sufficient for NookTab also.
Only in omap3callbootrom2.S you have to change the sram address to which things are copied from 0x4020.0800 to 0x4030.0800 for NChild code. However I haven't crosschecked the x-loader based NChild on NookTab as of now, but DONT SEE ANY REASON why it should fail, other than for any issues with stupid code, like the SMI calls to manage L2 cache in u-boot for beaglexm and for some reason if 0x4030.0000 space has some issues I haven't thought of in Omap4 (I am relatively new to Omap4 started with NookTab only).
Will upload the Release Candidate version 1 of the code in a day or two. It is late here and I have been up on this NookTab project for few weeks now
a) starting from idea of linboothkvc
b) then moving to 2ndihkvc
c) followed by NOPBypass with UART access
0) The uboot loop hole (Oh my my my (But not released from my side hoping to keep it for future, but alas, if only people have/had patience ..., that is partly a dream now
d) followed by MenuK for 2ndihkvc - haven't released yet, time got sucked back
into linboothkvc
and back to
e) linboothkvc
all of the above work on NookTab successfully as of today and all can be used to achieve custom Roms and in case of NOPBypass and linboothkvc even custom kernels
So enjoy everyone. Some sweet rest for me atlast ;-)
NOTE: The POWER of Kernel MODULE and inturn linboothkvc goes well beyond NookTab for the adventures people out there
Oh My MURPHY - For now keep away from 0x4030.xxxx
Hi All,
Now as Murphys law would have it , 0x4030.4350 (the default address used by x-loader in Omap4) has some issue with it (which I have to debug later). So if trying on NookTab remember to use some other address (what other I will leave as a exercise to the interested
Also the x-loader from BN and or inturn from Ti expects a special meta data structure to be passed along thro r0, which inturn tells it about boot device and boot mode. So you will require to take care of this or better still simplify the structure to handle in cpu/omap4/start.S
Also I did the cardinal sin of doing too many changes when working/debugging on a new unknown device (from my perspective i.e NookTab) with no jtag access (atleast at my end for now).
So ended up digging into Arm L2X0 cache and inturn PL310 trm and writing a L2X0 cache flush logic (obviously also cross checking the equivalent logic in Linux kernel) when none was required in reality as I had already found and mentioned in my last post few days back. I forgot (rather got too lazy to checkout my own old code, just for the fun of exploring further ;-) my own Nirvana code which I had tried towards the beginning of the week which had successfully run and printed stuff on screen.
Also dug into the Address translation support registers in CP15 to be 100% sure that the 1-to-1 map was in fact there (again lazy to dig thro the linux kernel setup_mm code, when arm walks the page table tree for you and on top when I had not tried this arm instruction method before .
But ended up finally realizing that me using the 0x4030.4350 was the culprit atleast for now.
So keep away from that address for now (or debug further on this on your own for now, I will be looking at it only later, could be something to do with HS code using that region or ..., there is more interesting stuff to do for now) and remember to patch x-loader appropriately and you should be able to get it running on NookTab; again with my last code release with hardly any changes other than what I have already mentioned in the last 2 to 3 posts.
A updated source with the now useless l2x0 cache flush and va2pa address translation verification logic and a newer nirvana code with panda board support also (verified works perfectly - only slight changes required between Panda and NookTab as far as Nirvana code is concerned) I will release after some more experimentation and code stabilisation at my end.
hkvc said:
Hi All,
Now as Murphys law would have it , 0x4030.4350 (the default address used by x-loader in Omap4) has some issue with it (which I have to debug later). So if trying on NookTab remember to use some other address (what other I will leave as a exercise to the interested
Also the x-loader from BN and or inturn from Ti expects a special meta data structure to be passed along thro r0, which inturn tells it about boot device and boot mode. So you will require to take care of this or better still simplify the structure to handle in cpu/omap4/start.S
Also I did the cardinal sin of doing too many changes when working/debugging on a new unknown device (from my perspective i.e NookTab) with no jtag access (atleast at my end for now).
So ended up digging into Arm L2X0 cache and inturn PL310 trm and writing a L2X0 cache flush logic (obviously also cross checking the equivalent logic in Linux kernel) when none was required in reality as I had already found and mentioned in my last post few days back. I forgot (rather got too lazy to checkout my own old code, just for the fun of exploring further ;-) my own Nirvana code which I had tried towards the beginning of the week which had successfully run and printed stuff on screen.
Also dug into the Address translation support registers in CP15 to be 100% sure that the 1-to-1 map was in fact there (again lazy to dig thro the linux kernel setup_mm code, when arm walks the page table tree for you and on top when I had not tried this arm instruction method before .
But ended up finally realizing that me using the 0x4030.4350 was the culprit atleast for now.
So keep away from that address for now (or debug further on this on your own for now, I will be looking at it only later, could be something to do with HS code using that region or ..., there is more interesting stuff to do for now) and remember to patch x-loader appropriately and you should be able to get it running on NookTab; again with my last code release with hardly any changes other than what I have already mentioned in the last 2 to 3 posts.
A updated source with the now useless l2x0 cache flush and va2pa address translation verification logic and a newer nirvana code with panda board support also (verified works perfectly - only slight changes required between Panda and NookTab as far as Nirvana code is concerned) I will release after some more experimentation and code stabilisation at my end.
Click to expand...
Click to collapse
hkvc:
Thanks for all of your work. Even though the bootloader bypass has been found, you do not know how many others you are helping. This could be used as an indefinite alternative to locked bootloaders for ALL DEVICES! Keep chugging on this, and I'm sure you'll find your solution to the l2 cache flush. Also i have been looking around, and I was curious if this could be another explotable boot flaw,
Code:
/*
* The SAR RAM is maintained during Device OFF mode.
* It is split into 4 banks with different privilege accesses
*
* ---------------------------------------------------------------------
* Access mode Bank Address Range
* ---------------------------------------------------------------------
* HS/GP : Public 1 0x4A32_6000 - 0x4A32_6FFF (4kB)
* HS/GP : Public, Secured
* if padconfaccdisable=1 2 0x4A32_7000 - 0x4A32_73FF (1kB)
* HS/EMU : Secured
* GP : Public 3 0x4A32_8000 - 0x4A32_87FF (2kB)
* HS/GP :
* Secure Priviledge,
* write once. 4 0x4A32_9000 - 0x4A32_93FF (1kB)
* ---------------------------------------------------------------------
* The SAR RAM save regiter layout is fixed since restore is done by hardware.
*/
27.4.4.4.1 Public Use of SAR RAM
At system level, the OMAP4430 SAR RAM memory is divided into four banks. The public ROM code uses only the first bank, which is always public-accessible. More specifically, the software booting configurationstructure must be located in the upper 1.5KB of the first bank.
The public ROM code offers some flexibility about the location of the software booting configuration structure. The PUBLIC_SW_BOOT_CFG_ADDR pointer defines the start address of the structure within the SAR RAM bank (see Table 27-14).
As mentioned previously, the software booting configuration feature is optional. Hence, the public ROM code decides to use the feature based on the value read on a warm reset at the address pointed to by the PUBLIC_SW_BOOT_CFG_ADDR pointer. If the value matches the range 0x4A326A00 – 0x4A326FFF, the ROM code tries to extract the structure located at that address. The value pointed to by PUBLIC_SW_BOOT_CFG_ADDR is always overwritten to zero on a cold reset.
The recommended address for storing the software booting configuration structure described hereafter is defined as PUBLIC_SAR_RAM_1_FREE. It is, however, possible to locate the structure at any location within the 1.5-KB range.
It is moreover possible to use the public SAR RAM area for any other purpose, such as storing traces for HLOS use. Obviously, care must be taken not to overwrite the locations used for low-power modes and/or software booting configuration if used.
Click to expand...
Click to collapse
linboothkvc v1.0_RC3 with good x-loader for O3Beagle and O4Pandabrd and semi 4NookTab
Hi All,
I am attaching the source code for linboothkvc with a good basic Nirvana code for Omap3 (Many mobiles and few tablets) and Omap4 (few mobiles and tablets) devices. NOTE: for NookTab, basic linboothkvc works perfectly now (except for may be some toning down of the secure Monitor code if possible), However there is some more work required at x-loader (which I am using as my NChild code) level which I have mentioned further below as TODO. Otherwise the basic logic fully works for NookTab also now. At this stage it can be used by developers and not end users as NChild code for NookTab still requires some love.
[A] obviously there would be some minor tweaks to the NChild load address and args to pass etc based on x-loader/bootloader used in a given device, but still the basic skeleton is fully there in Nirvana code now. And the same can be modified for other SOCs from Samsung/NVidia/(Not getting the other vendor name now funny)... pretty easily.
Also the addresses for the linux kernel functions which I use require to be updated for any new device or for a new/different kernel for the devices which I have already put the code in this release.
[C] It expects to find a u-bootk.bin in mmc vfat root dir, provided you are using the x-loader code which I have bundled. How ever based on your device, you may have to change to a different bootloader or modify x-loader to suit that devices need, and thus With your own version of x-loader or NChild code, you can always modify it the way you want as to what it loads and from where.
But with the above changes/setup this can be used with any Rooted ARM based Linux device (be it android or webos or ...)
Changes I had to do to x-loader for NookTab:
[1] I had to bypass or find alternate locations for some of the 0x.4030.xxxx addresses used in x-loader from BN/Ti (Haven't had time to look into the details as to why this is forced on us and how to force the use of the same address yet). For this reason I am recompiling the x-loader with a load address of 0x8000.7ff0 for now and sidestepping it mostly.
[2] Clock and related init settings related to MPU,IVA and DDR memory are offlimits for now (but then again for a basic working these need not be changed at x-loader level eitherway).
[3] smc/SEC_Ppa functions are offlimits for now, again not required at x-loader level.
[4] TODO: the x-loader bundled with BN source seems to be a old version or has some non required (from BN perspective, but usefull from our perspective) logics for BN stripped. So even thou I have modified the high level logic to do a FAT load from MMC for u-bootk.bin. Because of this missing support for FAT boot mode, the current version of x-loader for NookTab which I have bundled in my code doesn't load u-bootk.bin.
Enjoy and happy Experimenting all
NOTE: When I say bundled x-loader, it is only binary blob, you can get the actual source code for x-loader from the respective git sources. I think few days back I uploaded the patch required for beagle x-loader to make it run in linboothkvc Nirvana env. I will do the same for x-loader for NookTab and Omap4 (rather omap4/panda hardly any change required from Ti release - I had to mainly simplify the argument mechanism passed to x-loader and nothing much, if I remember correctly, as I tried pandaboard 1 day back and after that I have done so many other things that, pandaboard is out of my memory Fifo) in few days.
[DONE] source of linboothkvc v1.0 (includes binary for NookTab with working xloader)
Hi All,
LinBootHKVC for NookTab is fully DONE now. Well (for developers) it can work with any ROOTED ARM based LINUX device (android or not doesn't matter) with kernel module support with minimal love, for those who are interested ;-).
Along with the source (which can work with any Arm based linux setup with some minimal love), this release also includes the binary kernel module for BN NOOK TABLET with firmware 1.4.0. Which inturn contains a working x-loader binary as its NChild for NookTab, which looks for a u-bootk.bin file on the uSD card.
To use this on NookTab (similar steps work for any other device, provided you have suitably compiled linboothkvc for your device with proper love)
a) get your required/prefered u-boot.bin file and prepend a 288 (0x120) byte dummy header and name it u-bootk.bin
i.e
dd if=/dev/zero of=/tmp/dummy.bin bs=288 count=1
cat /tmp/dummy.bin u-boot.bin > u-bootk.bin
b) copy this u-bootk.bin to the root directory of the 1st partiton on a uSD card which inturn should be VFAT formated. (To be 100% safe and sure use a newly formated uSD - Or you never know when Murphys law can kick in, see my note at the end for a bad luck I had yesterday night
c) Insert the uSD card to your Nook Tablet
d) Copy to your Rooted NOOK TABLET with firmware 1.4.0 the kernel module lbhkvc_km_DEVICE_NOOKTAB.ko which I have provided with in the release folder in the source package uploaded with this message/post.
__may be__ adb push lbhkvc_km_DEVICE_NOOKTAB.ko /data/local/tmp/
or similar or thro the uSD card and a file manager.
e) either from adb (on PC) or a terminal (on NookTab) or serial port (on PC) get to a root shell.
if using ADB on a PC connected to rooted Nook Tab it will be
adb shell
su
NOTE: PC is NOT required, you can also load the kernel module directly from Nooktab by using a android terminal package to get shell access.
f) insmod the copied Kernel module from the root shell/prompt
insmod lbhkvc_km_DEVICE_NOOKTAB.ko
This will load linboothkvc and inturn do a forced reboot/hijack into a x-loader environment, which will inturn load the u-bootk.bin which you had copied into SD card in steps a to c above.
NOTE: Based on what I have verified, u-boot works with out requiring any change to it (unless you want to bypass the security check in u-boot . So ENJOY.
NOTE: This can equally work on a 1.4.1 firmware based Nook Tablet, provided it is rooted. But for that you will most probably have to recompile my kernel module with updated addresses (if it has changed) for the kernel functions which I am using. However if BN hasn't done any change to kernel in 1.4.1 firmware, then the current kernel module which I have bundled it self will work. I haven't verified with 1.4.1 firmware currently (as I haven't upgraded to 1.4.1)
NOTE: Be sure to save any things you might be working on your NookTab, before loading the kernel module, because it will force a reboot with out any mercy, so any unsaved things in your NookTab can get lost. so BEWARE
NOTE: Rather even yesterdays release would have worked 99%, I had a problem with my uSD card being bit corrupt wrt rootdirectory, which is why it was failing yesterday when I finished it originally . However in this release I have also cleaned up the Nirvana code a small bit to avoid the hardcoded ioremap address of UART.
Release v1.1 source with binary for NookTab
Hi All,
Being bit lazy I had not called cache flush once again after disabling the cache, because I was calling it just a wee bit before disabling it and was also expecting any body who enables Cache in Nirvana environment to do a thorough job of cache invalidation before enabling it again.
However found that the linux kernel 2.6.35 used by Nook firmware has this problem, so now I take care of calling cache disable once again after disabling the Cache to be on safe side and it does help for NookTab (while on Beagle and Pandboard I didn't have this issue, it was a newer kernel which I had tried there so may be it has some additional effort put in wrt cache invalidation or it was pure luck, either way haven't debugged that aspect now).
So with this release, linboothkvc provides a better Nirvana environment, except for the SMC related stuff, which I am ignoring for now . So related to that there is some cleanup or bypassing required to be done in Kernel otherwise linux kernel should be pretty much ok in linboothkvc Nirvana environment, haven't had time to look at it fully yet. Will spend sometime in a day or two when a holiday is coming my way.
Check out the README file some of the same info as above and may be a few more things here and there. Also the new binary for NookTab is there in the source package within the release directory.
I've read every one of these posts and have no idea what is going on but I'm glad that it's all working. Great job!
Sent from my Nexus S using xda premium
Getting Linux kernel for NookTab up in LinBootHKVC - Step2 and 3
Hi All,
Step2
------------
There seems to be few race conditions in the linux kernel source and or some initialisations not being done properly in the kernel code, because of which by default the BN kernel source will fail in LinBootHKVC environment.
The below patch fixes 1 such race issue I have noticed wrt initial clock event handler for ipi timer (Have to debug this further later).
NOTE: A initialisation issue with the Cache, in that it not getting invalidated properly during booting was fixed in my v1.1 linboothkvc kernel module, by doing a additional flush before switching to Nirvana. Because that was also a appropriate stuff for linboothkvc also to do, independent of the kernel initialisation issue.
static void ipi_timer(void)
{
struct clock_event_device *evt = &__get_cpu_var(percpu_clockevent);
irq_enter();
- evt->event_handler(evt);
+ if(evt) {
+ if(evt->event_handler) {
+ evt->event_handler(evt);
+ }
+ else
+ printk("WARN:ipi_timer: event_handler missing\n");
+ }
+ else
+ printk("WARN:ipi_timer: evt not set\n");
irq_exit();
}
Beyond this any additional issues, I have to check yet. Also the reason for this race, I haven't debugged for now.
UPDATE1 (Step3)
----------------------
I have further cross checked that CONFIG_OMAP_RESET_CLOCKS causes some problem in linboothkvc Nirvana environment for few specific clocks, either way for now Disabling this config in BN NookTab kernel before compilation will allow the resultant kernel to run SUCCESSFULLY on NOOKTAB.
NOTE: As of now, even thou SMP is enabled, one of the Processors doesn't come up live. That has to be debugged later. But otherwise the Linux is FULLY running in NookTab from with in the LinBoothKVC Nirvana Environment and in turn the Linux User space is also running fine.
That sounds like a big step. Awesome work!

WiFi MAC Address changes every time - 00:90:4c:xx:xx:xx

Hallo,
how ca i fix it?
WiFi MAC Address changes every time I enable/disable WiFi - it is on every ROM which I tested. (dev ROM, multi, MIUI 7 and 8, locker or unlocked bootloader - also an Recovery from a working Tablet !!!)
We have MAC-based authentication with RADIUS Server - thats the problem.
The tablet is a Xiaomi Mi Pad 2 (16GB). (Intel Atom Z8500 - so an x86-64 Android). Installed is Android 5.1 (MIUI ROM 8.1 Stable).
I know it is not a Xioami MIUI forum but the MAC address must be in a file. If I know where, then I would take the permissions away - done.
Code:
/persist/wifi/.macaddr
- does not work.
Buildprop -
Code:
setupwizard.wifi_required = false
- does not work either.
Any MAC changer apps do not work or at least not permanently.
Thank you for help.
Andreas.

Categories

Resources