Difference between revisions of "/dev/es"
BrianJones (talk | contribs) (minor updates) |
|||
Line 107: | Line 107: | ||
| style="vertical-align: top;" rowspan="3" |0x01 | | style="vertical-align: top;" rowspan="3" |0x01 | ||
| style="vertical-align: top;" rowspan="3" |ES_AddTicket | | style="vertical-align: top;" rowspan="3" |ES_AddTicket | ||
− | | style="vertical | + | | style="vertical ... \n |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == What Is Your Legacy? Living A Meaningful life == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | I want the world to be better because I was here. I want my life, I want my work, my family, I want it to mean something and if you are not making someone elses life better then you are wasting your time Will Smith | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[http://goodvillenews.com/What-Is-Your-Legacy-Living-A-Meaningful-life-oBtnrB.html What Is Your Legacy? Living A Meaningful life]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ | + | [[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]] |
+ | |||
+ | == A Bicycle Nomad Prepares for Re-entry == | ||
+ | |||
+ | In 2010, Manjula Martin and her partner set out to see the world the old-fashioned way: by bicycle. With little money, no itinerary, gadgets or training, they traversed five countries and 3,500 miles and discovered a world filled with generosity. In this article, Manjula Martin describes the transition from bike to home with four rules for re-entry that are strikingly authentic, grounded, and universal. | ||
+ | |||
+ | [[http://goodvillenews.com/A-Bicycle-Nomad-Prepares-for-Re-entry-S6sLCO.html A Bicycle Nomad Prepares for Re-entry]] | ||
+ | |||
+ | [[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]] | ||
+ | |||
+ | == 9-yr-old Helps Disabled Brother Finish Triathlons == | ||
+ | |||
+ | Over the weekend, brothers Cayden and Connor Long joined hundreds of other children as they competed in the first annual New England Kids Triathlon in Cambridge. The boys did not win the event -- they didnt even come close. But that didnt stop them from winning hearts across the Internet. The Long brothers are not your typical triathletes. Six-year-old Cayden has cerebral palsy and can neither walk nor talk. But thanks to the dedication of his older brother, Connor, the young boy has participated in several triathlons. A touching video | ||
+ | |||
+ | [[http://goodvillenews.com/9-yr-old-Helps-Disabled-Brother-Finish-Triathlons-mozmuF.html 9-yr-old Helps Disabled Brother Finish Triathlons]] | ||
+ | |||
+ | [[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]] | ||
+ | |||
+ | == Refugee Turned Entrepreneur Uplifts Women Abroad == | ||
+ | |||
+ | While some retailers have struggled in the recession, Amber Chand, an online retailer of items made by women living in war-torn countries, is experiencing success."As the economy was going into a downturn during the holiday season, which is my primary season, I noticed actually that my company was increasing in terms of sales and revenues, and we grew by 22 percent," says Chand. | ||
+ | |||
+ | [[http://goodvillenews.com/Refugee-Turned-Entrepreneur-Uplifts-Women-Abroad-w0ETyF.html Refugee Turned Entrepreneur Uplifts Women Abroad]] | ||
+ | |||
+ | [[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]] | ||
+ | |||
+ | == The Way of the Peaceful Parent == | ||
+ | |||
+ | The Way is only learned by walking it. Here are the steps I recommend:* Greet your child each morning with a smile, a hug, a loving Good Morning! This is how we would all like to be greeted each day. | ||
+ | |||
+ | [[http://goodvillenews.com/The-Way-of-the-Peaceful-Parent-sdV8KN.html The Way of the Peaceful Parent]] | ||
+ | |||
+ | [[http://goodvillenews.com/wk.html GoodvilleNews.com - good, positive news, inspirational stories, articles]] |
Revision as of 06:36, 5 August 2012
The ES (ETicket Services) is responsible for the security of Wii, making it OUR enemy! Along with the rest of IOS, this is generally considered a "private interface" -- game developers never call any of these functions directly.
Most of these are now implemented in libogc -- see http://devkitpro.svn.sourceforge.net/viewvc/devkitpro/trunk/libogc/libogc/es.c?view=log.
Please feel free to submit patches to implement the remaining functions.
Known ES Functions
ios_ioctlv( fd, 0x01, 3, 0, vec); // ES_AddTicket(const signed_blob *stik, u32 stik_size, const signed_blob *certificates, u32 certificates_size, const signed_blob *crl, u32 crl_size) ios_ioctlv( fd, 0x02, 4, 0, vec); // ES_AddTitleStart(const signed_blob *stmd, u32 tmd_size, const signed_blob *certificates, u32 certificates_size, const signed_blob *crl, u32 crl_size) ios_ioctlv( fd, 0x03, 2, 0, vec); // ES_AddContentStart(u64 titleID, u32 cid) ios_ioctlv( fd, 0x04, 2, 0, vec); // ES_AddContentData(s32 cfd, u8 *data, u32 data_size) ios_ioctlv( fd, 0x05, 1, 0, vec); // ES_AddContentFinish(u32 cid) ios_ioctlv( fd, 0x06, 0, 0, vec); // ES_AddTitleFinish(void) ios_ioctlv( fd, 0x07, 0, 1, vec); // ES_GetDeviceID ios_ioctlvReboot(fd, 0x08, 2, 0, vec); // ES_LaunchTitle(u64 titleID, const tikview *view) ios_ioctlv( fd, 0x09, 1, 0, vec); // ES_OpenContent(u16 index) ios_ioctlv( fd, 0x0A, 1, 1, vec); // ES_ReadContent(s32 cfd, u8 *data, u32 data_size) ios_ioctlv( fd, 0x0B, 1, 0, vec); // ES_CloseContent(s32 cfd) ios_ioctlv( fd, 0x0C, 0, 1, vec); // ES_GetOwnedTitlesCount ios_ioctlv( fd, 0x0D, 1, 1, vec); // ES_GetOwnedTitles ios_ioctlv( fd, 0x0E, 0, 1, vec); // ES_GetTitlesCount ios_ioctlv( fd, 0x0F, 1, 1, vec); // ES_GetTitles ios_ioctlv( fd, 0x10, 1, 1, vec); // ES_GetTitleContentsCount ios_ioctlv( fd, 0x11, 2, 1, vec); // ES_GetTitleContent ios_ioctlv( fd, 0x12, 1, 1, vec); // ES_GetNumTicketViews(u64 titleID, u32 *cnt) ios_ioctlv( fd, 0x13, 2, 1, vec); // ES_GetTicketViews(u64 titleID, tikview *views, u32 cnt) ios_ioctlv( fd, 0x14, 1, 1, vec); // ES_GetTmdViewSize ios_ioctlv( fd, 0x15, 2, 1, vec); // ES_GetTmdView ios_ioctlv( fd, 0x16, 1, 2, vec); // ES_GetConsumption ios_ioctlv( fd, 0x17, 1, 0, vec); // ES_DeleteTitle ios_ioctlv( fd, 0x18, 1, 0, vec); // ES_DeleteTicket ios_ioctlv( fd, 0x19, 1, 1, vec); // ES_DIGetTmdViewSize( u8 *TMD, u32 *TMDViewSize ) ios_ioctlv( fd, 0x1A, 2, 1, vec); // ES_DiGetTmdView ios_ioctlv( fd, 0x1B, 1, 1, vec); // ES_DiGetTicketView ios_ioctlv( fd, 0x1C, 4, 2, vec); // ES_DiVerify ios_ioctlv( fd, 0x1D, 1, 1, vec); // ES_GetDataDir ios_ioctlv( fd, 0x1E, 0, 1, vec); // ES_GetDeviceCert(u8 *outbuf) ios_ioctlv( fd, 0x1F, 6, 0, vec); // ES_ImportBoot( const signed_blob *tik, u32 tik_size, const signed_blob *tik_certs, u32 tik_certs_size, const signed_blob *tmd, u32 tmd_size, const signed_blob *tmd_certs, u32 tmd_certs_size, const u8 *content, u32 content_size ) ios_ioctlv( fd, 0x20, 0, 1, vec); // ES_GetTitleId ios_ioctlv( fd, 0x21, 1, 0, vec); // ES_SetUid ios_ioctlv( fd, 0x22, 1, 0, vec); // ES_DeleteTitleContent(u64 titleID) - deletes all files containing 'app' in a /title/xxxxxxxx/yyyyyyyy/content ios_ioctlv( fd, 0x23, 3, 0, vec); // ES_SeekContent ios_ioctlv( fd, 0x24, 3, 0, vec); // ES_OpenTitleContent(u64 titleID, const tikview *view, u16 index) ios_ioctlv( fd, 0x25, 0, 0, vec); // ES_LaunchBC(void) ios_ioctlv( fd, 0x26, 1, 1, vec); // ES_ExportTitleInit ios_ioctlv( fd, 0x27, 2, 0, vec); // ES_ExportContentBegin ios_ioctlv( fd, 0x28, 1, 1, vec); // ES_ExportContentData ios_ioctlv( fd, 0x29, 1, 0, vec); // ES_ExportContentEnd ios_ioctlv( fd, 0x2A, 0, 0, vec); // ES_ExportTitleDone(void) ios_ioctlv( fd, 0x2B, 1, 0, vec); // ES_AddTmd ios_ioctlv( fd, 0x2C, 3, 2, vec); // ES_Encrypt(u32 keynum, u8 *iv, u8 *source, u32 size, u8 *dest) ios_ioctlv( fd, 0x2D, 3, 2, vec); // ES_Decrypt(u32 keynum, u8 *iv, u8 *source, u32 size, u8 *dest) ios_ioctlv( fd, 0x2E, 0, 1, vec); // ES_GetBoot2Version(u32 *version) ios_ioctlv( fd, 0x2F, 0, 0, vec); // ES_AddTitleCancel(void) ios_ioctlv( fd, 0x30, 1, 2, vec); // ES_Sign(u8 *source, u32 size, u8 *sig, u8 *certs) ios_ioctlv( fd, 0x31, 3, 0, vec); // ES_VerifySign // the following functions are only available in IOS28+ ios_ioctlv( fd, 0x32, 1, 1, vec); // ES_GetStoredContentCount ios_ioctlv( fd, 0x33, 2, 1, vec); // ES_GetStoredContent ios_ioctlv( fd, 0x34, 1, 1, vec); // ES_GetStoredTmdSize ios_ioctlv( fd, 0x35, 2, 1, vec); // ES_GetStoredTmd ios_ioctlv( fd, 0x36, 0, 1, vec); // ES_GetSharedContentCount ios_ioctlv( fd, 0x37, 1, 1, vec); // ES_GetSharedContents ios_ioctlv( fd, 0x38, 1, 0, vec); // ?(ES_DeleteSharedContent) ios_ioctlv( fd, 0x39, 0, 1, vec); // ES_GetDiTmdSize ios_ioctlv( fd, 0x3A, 1, 1, vec); // ES_GetDiTmd ios_ioctlv( fd, 0x3B, 4, 2, vec); // Unknown ... calls ES_DiVerify ios_ioctlv( fd, 0x3C, 2, 1, vec); // ES_SetupStreamKey ... calls ES_DiVerify(tikview,tmd,u32) ios_ioctlv( fd, 0x3D, 0, 1, vec); // ES_DeleteStreamKey ... wrapper for syscall 5c // the following functions are only available in IOS37+ but not in IOS38 ios_ioctlv( fd, 0x3E, 2, 0, vec); // Unknown ... Deletes a content from a title's private directory // the following functions are only available in IOS37v3609+ but not in IOS38 ios_ioctlv( fd, 0x3F, ?, ?, vec); // non-existant ioctl why? ... because. ios_ioctlv( fd, 0x40, 1, 1, vec); // Unknown -- takes in a ticket? // the following functions are only available in IOS56+ ios_ioctlv( fd, 0x41, 1, 1, vec); // Unknown -- retrieves a key? ios_ioctlv( fd, 0x42, 2, 0, vec); // Unknown -- something with a key? // the following functions are only available in IOS56v5405+/IOS57v5661+/IOS61v5405+/IOS70+ Please check (I thought it was a rule never add new functions existing IOS) ios_ioctlv( fd, 0x43, 1, 1, vec); // Unknown -- something with a ticket and maybe a ".tv1" file? ios_ioctlv( fd, 0x44, 2, 1, vec); // Unknown -- similar to ioctl 43 ios_ioctlv( fd, 0x45, 0, 0, vec); // Unknown ... korean-common-key check
/dev/es IOS_Ioctlv
This article is a stub. You can help WiiBrew by expanding it. |
number | name | in count | out count | vec entry target | vec entry size [bytes] | libogc prototype | Description |
---|---|---|---|---|---|---|---|
0x00 | ? | ? | ? | ? | ? | ? | returns -1017 non-existant ioctl |
0x01 | ES_AddTicket | style="vertical ... \n
What Is Your Legacy? Living A Meaningful lifeI want the world to be better because I was here. I want my life, I want my work, my family, I want it to mean something and if you are not making someone elses life better then you are wasting your time Will Smith [What Is Your Legacy? Living A Meaningful life] [GoodvilleNews.com - good, positive news, inspirational stories, articles] A Bicycle Nomad Prepares for Re-entryIn 2010, Manjula Martin and her partner set out to see the world the old-fashioned way: by bicycle. With little money, no itinerary, gadgets or training, they traversed five countries and 3,500 miles and discovered a world filled with generosity. In this article, Manjula Martin describes the transition from bike to home with four rules for re-entry that are strikingly authentic, grounded, and universal. [A Bicycle Nomad Prepares for Re-entry] [GoodvilleNews.com - good, positive news, inspirational stories, articles] 9-yr-old Helps Disabled Brother Finish TriathlonsOver the weekend, brothers Cayden and Connor Long joined hundreds of other children as they competed in the first annual New England Kids Triathlon in Cambridge. The boys did not win the event -- they didnt even come close. But that didnt stop them from winning hearts across the Internet. The Long brothers are not your typical triathletes. Six-year-old Cayden has cerebral palsy and can neither walk nor talk. But thanks to the dedication of his older brother, Connor, the young boy has participated in several triathlons. A touching video [9-yr-old Helps Disabled Brother Finish Triathlons] [GoodvilleNews.com - good, positive news, inspirational stories, articles] Refugee Turned Entrepreneur Uplifts Women AbroadWhile some retailers have struggled in the recession, Amber Chand, an online retailer of items made by women living in war-torn countries, is experiencing success."As the economy was going into a downturn during the holiday season, which is my primary season, I noticed actually that my company was increasing in terms of sales and revenues, and we grew by 22 percent," says Chand. [Refugee Turned Entrepreneur Uplifts Women Abroad] [GoodvilleNews.com - good, positive news, inspirational stories, articles] The Way of the Peaceful ParentThe Way is only learned by walking it. Here are the steps I recommend:* Greet your child each morning with a smile, a hug, a loving Good Morning! This is how we would all like to be greeted each day. [The Way of the Peaceful Parent] [GoodvilleNews.com - good, positive news, inspirational stories, articles] |